Update to esm, update deepslate (#244)

This commit is contained in:
Misode
2022-06-16 00:58:14 +02:00
committed by GitHub
parent cbef6ef41b
commit 561cd341a1
98 changed files with 1243 additions and 1104 deletions

73
.eslintrc.cjs Normal file
View File

@@ -0,0 +1,73 @@
module.exports = {
env: {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig-eslint.json',
},
plugins: [
'@typescript-eslint',
],
ignorePatterns: [
'**/node_modules',
'**/dist',
],
rules: {
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
},
],
'@typescript-eslint/prefer-readonly': 'warn',
'@typescript-eslint/quotes': [
'warn',
'single',
{
avoidEscape: true,
},
],
'@typescript-eslint/semi': [
'warn',
'never',
],
'@typescript-eslint/indent': [
'warn',
'tab',
],
'@typescript-eslint/member-delimiter-style': [
'warn',
{
multiline: {
delimiter: 'comma',
requireLast: true,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
overrides: {
interface: {
multiline: {
delimiter: undefined,
},
},
},
},
],
'comma-dangle': 'off',
'@typescript-eslint/comma-dangle': ['warn', 'always-multiline'],
indent: 'off',
'eol-last': 'warn',
'no-fallthrough': 'warn',
'prefer-const': 'warn',
'prefer-object-spread': 'warn',
'quote-props': [
'warn',
'as-needed',
],
},
}