2022-08-11 11:18:07 +08:00
|
|
|
module.exports = {
|
|
|
|
globals: {
|
|
|
|
"AMap": true,
|
|
|
|
"L7": true,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 12,
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
2022-08-11 14:04:56 +08:00
|
|
|
plugins: ['@typescript-eslint',"unused-imports"],
|
2022-08-11 11:18:07 +08:00
|
|
|
rules: {
|
2022-08-11 14:04:56 +08:00
|
|
|
"unused-imports/no-unused-imports": "error",
|
2022-08-11 11:18:07 +08:00
|
|
|
'@typescript-eslint/no-loss-of-precision':0,
|
|
|
|
'@typescript-eslint/no-inferrable-types': 0,
|
|
|
|
'no-constant-condition': 0,
|
|
|
|
'@typescript-eslint/ban-types': 0,
|
|
|
|
'@typescript-eslint/ban-ts-comment': 0,
|
|
|
|
'@typescript-eslint/no-empty-function': 0,
|
|
|
|
'no-prototype-builtins': 0,
|
|
|
|
'no-case-declarations': 0,
|
|
|
|
'no-useless-catch': 0,
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 0,
|
2022-10-09 16:32:06 +08:00
|
|
|
'@typescript-eslint/no-explicit-any':0,
|
2022-08-11 11:18:07 +08:00
|
|
|
'prefer-rest-params':0,
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/parsers': {
|
|
|
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
|
|
},
|
|
|
|
'import/resolver': {
|
|
|
|
typescript: {
|
|
|
|
alwaysTryTypes: true,
|
|
|
|
},
|
|
|
|
},
|
2022-08-11 14:04:56 +08:00
|
|
|
}
|
2022-10-09 16:32:06 +08:00
|
|
|
};
|