2021-08-17 17:00:34 +08:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"node": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
2022-04-24 14:35:13 +08:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
2021-08-17 17:00:34 +08:00
|
|
|
"globals": {
|
|
|
|
"describe": true,
|
|
|
|
"beforeEach": true,
|
|
|
|
"it": true,
|
|
|
|
"expect": true
|
|
|
|
},
|
2022-04-24 14:35:13 +08:00
|
|
|
"plugins": [
|
|
|
|
"react",
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
2021-08-17 17:00:34 +08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-alert": "error",
|
|
|
|
"no-eval": "error",
|
2022-04-24 14:35:13 +08:00
|
|
|
"spaced-comment": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2022-02-26 22:36:57 +08:00
|
|
|
// "linebreak-style": ["error", "windows"],
|
2022-04-24 14:35:13 +08:00
|
|
|
"linebreak-style": 0,
|
|
|
|
// "linebreak-style": ["error", "unix"],
|
2021-08-17 17:00:34 +08:00
|
|
|
"react/prop-types": 0,
|
|
|
|
"no-console": 0,
|
|
|
|
"no-useless-escape": 0,
|
|
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
|
|
"@typescript-eslint/camelcase": 0,
|
|
|
|
"@typescript-eslint/explicit-function-return-type": 0
|
|
|
|
}
|
2022-04-24 14:35:13 +08:00
|
|
|
}
|