mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-27 08:39:59 +08:00
64 lines
1.6 KiB
JSON
64 lines
1.6 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"standard",
|
|
"prettier"
|
|
],
|
|
"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",
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error"],
|
|
"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",
|
|
"@typescript-eslint/ban-types": "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"
|
|
]
|
|
}
|