35 lines
907 B
JavaScript
35 lines
907 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
commonjs: true,
|
|
es6: true,
|
|
amd: true
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.eslint.json']
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking'
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.tsx', '**/*.ts', '**/*.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off'
|
|
}
|
|
}
|
|
]
|
|
};
|