sunmao-ui/packages/arco-lib/.eslintrc.json

37 lines
1.0 KiB
JSON
Raw Normal View History

{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"linebreak-style": ["error", "unix"],
"react/prop-types": "off",
"no-case-declarations": "off",
"no-unused-vars":"off",
2022-04-14 10:19:04 +08:00
"@typescript-eslint/no-unused-vars": ["error",{"argsIgnorePattern":"^_"}],
"@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"]
}