2021-09-15 14:08:37 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
2021-12-30 13:51:55 +08:00
|
|
|
"plugin:react-hooks/recommended",
|
2021-10-27 14:11:02 +08:00
|
|
|
"plugin:@typescript-eslint/recommended",
|
2022-02-08 13:50:10 +08:00
|
|
|
"standard",
|
|
|
|
"prettier"
|
2021-09-15 14:08:37 +08:00
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
|
|
"rules": {
|
2022-01-20 14:06:26 +08:00
|
|
|
"semi": ["error", "always"],
|
2021-09-15 14:08:37 +08:00
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"no-case-declarations": "off",
|
2022-01-21 16:11:51 +08:00
|
|
|
"no-use-before-define": "off",
|
2022-02-09 12:50:51 +08:00
|
|
|
"no-unused-vars": "off",
|
2022-02-07 15:54:42 +08:00
|
|
|
"@typescript-eslint/no-unused-vars": ["error"],
|
2022-01-21 16:11:51 +08:00
|
|
|
"comma-dangle": "off",
|
|
|
|
"space-before-function-paren": "off",
|
|
|
|
"multiline-ternary": "off",
|
2021-09-15 14:08:37 +08:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
2022-02-09 12:50:51 +08:00
|
|
|
"@typescript-eslint/ban-types": "off",
|
2022-01-20 14:06:26 +08:00
|
|
|
"react/prop-types": "off",
|
2021-09-23 18:21:20 +08:00
|
|
|
"react/display-name": "off",
|
|
|
|
"react/jsx-uses-react": "off",
|
2022-01-20 14:06:26 +08:00
|
|
|
"react/react-in-jsx-scope": "off",
|
|
|
|
"react/jsx-indent": ["error", 2],
|
|
|
|
"react/jsx-indent-props": ["error", 2],
|
2022-01-21 16:11:51 +08:00
|
|
|
"react/self-closing-comp": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"component": true,
|
|
|
|
"html": true
|
|
|
|
}
|
|
|
|
],
|
2022-01-20 14:06:26 +08:00
|
|
|
"react/jsx-equals-spacing": ["error", "never"],
|
|
|
|
"react/jsx-wrap-multilines": ["error"],
|
2022-01-21 16:11:51 +08:00
|
|
|
"react/jsx-tag-spacing": ["error"]
|
2021-09-15 14:08:37 +08:00
|
|
|
},
|
2022-02-08 13:50:10 +08:00
|
|
|
"ignorePatterns": [
|
|
|
|
"node_modules",
|
|
|
|
"*.d.ts",
|
|
|
|
"*.js",
|
|
|
|
"package.json",
|
|
|
|
"*.html",
|
|
|
|
"*.spec.ts",
|
|
|
|
"*.spec.tsx"
|
|
|
|
]
|
2021-09-15 14:08:37 +08:00
|
|
|
}
|