mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
53 lines
1.4 KiB
JSON
53 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier",
|
|
"standard"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
"rules": {
|
|
"semi": ["error", "always"],
|
|
"linebreak-style": ["error", "unix"],
|
|
"no-case-declarations": "off",
|
|
"no-use-before-define": "off",
|
|
"comma-dangle": "off",
|
|
"space-before-function-paren": "off",
|
|
"multiline-ternary": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"react/prop-types": "off",
|
|
"react/display-name": "off",
|
|
"react/jsx-uses-react": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/jsx-indent": ["error", 2],
|
|
"react/jsx-indent-props": ["error", 2],
|
|
"react/self-closing-comp": [
|
|
"error",
|
|
{
|
|
"component": true,
|
|
"html": true
|
|
}
|
|
],
|
|
"react/jsx-equals-spacing": ["error", "never"],
|
|
"react/jsx-wrap-multilines": ["error"],
|
|
"react/jsx-tag-spacing": ["error"]
|
|
},
|
|
"ignorePatterns": ["node_modules", "*.d.ts", "*.js", "package.json", "*.html", "*.spec.ts", "*.spec.tsx"]
|
|
}
|