sunmao-ui/.eslintrc.json

36 lines
1022 B
JSON
Raw Normal View History

2021-09-15 14:08:37 +08:00
{
"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",
2021-09-23 18:21:20 +08:00
"react/display-name": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
2021-09-15 14:08:37 +08:00
},
2021-09-23 11:17:36 +08:00
"ignorePatterns": ["node_modules", "*.d.ts", "*.js", "package.json", "*.html"]
2021-09-15 14:08:37 +08:00
}