|
|
@ -5,21 +5,74 @@ module.exports = { |
|
|
|
tsconfigRootDir: __dirname, |
|
|
|
tsconfigRootDir: __dirname, |
|
|
|
sourceType: 'module', |
|
|
|
sourceType: 'module', |
|
|
|
}, |
|
|
|
}, |
|
|
|
plugins: ['@typescript-eslint/eslint-plugin'], |
|
|
|
plugins: ['import', 'eslint-comments', 'functional'], |
|
|
|
extends: [ |
|
|
|
extends: [ |
|
|
|
|
|
|
|
'eslint:recommended', |
|
|
|
|
|
|
|
'plugin:eslint-comments/recommended', |
|
|
|
'plugin:@typescript-eslint/recommended', |
|
|
|
'plugin:@typescript-eslint/recommended', |
|
|
|
|
|
|
|
'plugin:import/typescript', |
|
|
|
'plugin:prettier/recommended', |
|
|
|
'plugin:prettier/recommended', |
|
|
|
], |
|
|
|
], |
|
|
|
root: true, |
|
|
|
root: true, |
|
|
|
env: { |
|
|
|
env: { |
|
|
|
node: true, |
|
|
|
node: true, |
|
|
|
jest: true, |
|
|
|
jest: true, |
|
|
|
|
|
|
|
es6: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
ignorePatterns: [ |
|
|
|
|
|
|
|
'node_modules', |
|
|
|
|
|
|
|
'build', |
|
|
|
|
|
|
|
'coverage', |
|
|
|
|
|
|
|
'dist', |
|
|
|
|
|
|
|
'nc', |
|
|
|
|
|
|
|
'.eslintrc.js', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
globals: { |
|
|
|
|
|
|
|
BigInt: true, |
|
|
|
|
|
|
|
console: true, |
|
|
|
|
|
|
|
WebAssembly: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
ignorePatterns: ['.eslintrc.js'], |
|
|
|
|
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
'@typescript-eslint/interface-name-prefix': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off', |
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off', |
|
|
|
|
|
|
|
'eslint-comments/disable-enable-pair': [ |
|
|
|
|
|
|
|
'error', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
allowWholeFile: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'eslint-comments/no-unused-disable': 'error', |
|
|
|
|
|
|
|
'sort-imports': [ |
|
|
|
|
|
|
|
'error', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
ignoreDeclarationSort: true, |
|
|
|
|
|
|
|
ignoreCase: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'import/order': [ |
|
|
|
|
|
|
|
'error', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
groups: [ |
|
|
|
|
|
|
|
'builtin', |
|
|
|
|
|
|
|
'external', |
|
|
|
|
|
|
|
'internal', |
|
|
|
|
|
|
|
'parent', |
|
|
|
|
|
|
|
'sibling', |
|
|
|
|
|
|
|
'index', |
|
|
|
|
|
|
|
'object', |
|
|
|
|
|
|
|
'type', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'@typescript-eslint/no-this-alias': 'off', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// todo: enable
|
|
|
|
|
|
|
|
'@typescript-eslint/ban-ts-comment': 'off', |
|
|
|
'@typescript-eslint/no-explicit-any': 'off', |
|
|
|
'@typescript-eslint/no-explicit-any': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/no-unused-vars': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/no-var-requires': 'off', |
|
|
|
|
|
|
|
'no-useless-catch': 'off', |
|
|
|
|
|
|
|
'no-empty': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/no-empty-function': 'off', |
|
|
|
|
|
|
|
'@typescript-eslint/consistent-type-imports': 'warn', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|