mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-04-29 17:56:12 +08:00
68 lines
1.9 KiB
JSON
68 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"prettier"
|
|
],
|
|
"plugins": ["prettier", "react-hooks", "@typescript-eslint"],
|
|
"rules": {
|
|
"@typescript-eslint/ban-types": 0,
|
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
"@typescript-eslint/no-empty-function": 0,
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
"@typescript-eslint/no-namespace": 0,
|
|
"@typescript-eslint/no-non-null-assertion": 0,
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "ignoreRestSiblings": true }
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"class-methods-use-this": 0,
|
|
"curly": [2, "multi-line"],
|
|
"no-confusing-arrow": 0,
|
|
"no-continue": 0,
|
|
"no-duplicate-imports": 0,
|
|
"no-else-return": 0,
|
|
"no-prototype-builtins": 0,
|
|
"no-underscore-dangle": 0,
|
|
|
|
"react/button-has-type": 0,
|
|
"react/destructuring-assignment": 0,
|
|
"react/forbid-prop-types": 0,
|
|
"react/jsx-filename-extension": 0,
|
|
"react/no-multi-comp": 0,
|
|
"react/prefer-stateless-function": 0,
|
|
"react/prop-types": 0,
|
|
"react/require-default-props": 0,
|
|
"react/sort-comp": 0,
|
|
"symbol-description": 0,
|
|
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
|
|
"no-return-assign": 0,
|
|
"no-bitwise": 0,
|
|
"no-plusplus": 0,
|
|
"no-multi-assign": 0,
|
|
"prefer-const": 0
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"jest": true,
|
|
"node": true
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
}
|