2022-01-17 16:45:37 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
|
|
"rules": {
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"react/prop-types": "off",
|
|
|
|
"no-case-declarations": "off",
|
2022-02-09 16:33:53 +08:00
|
|
|
"no-unused-vars":"off",
|
2022-04-14 10:19:04 +08:00
|
|
|
"@typescript-eslint/no-unused-vars": ["error",{"argsIgnorePattern":"^_"}],
|
2022-01-17 16:45:37 +08:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"react/display-name": "off",
|
|
|
|
"react/jsx-uses-react": "off",
|
|
|
|
"react/react-in-jsx-scope": "off"
|
|
|
|
},
|
|
|
|
"ignorePatterns": ["node_modules", "*.d.ts", "*.js", "package.json", "*.html"]
|
|
|
|
}
|