mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
36 lines
1022 B
JSON
36 lines
1022 B
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
"rules": {
|
|
"indent": ["error", 2, { "flatTernaryExpressions": true, "SwitchCase": 1 }],
|
|
"linebreak-style": ["error", "unix"],
|
|
"quotes": ["error", "single"],
|
|
"semi": ["error", "always"],
|
|
"react/prop-types": "off",
|
|
"no-case-declarations": "off",
|
|
"@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"]
|
|
}
|