Files
styled-components/.eslintrc.json
2020-08-31 20:58:49 -04:00

60 lines
1.5 KiB
JSON

{
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:import/errors", "plugin:react/recommended", "prettier"],
"plugins": ["flowtype", "prettier", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"class-methods-use-this": 0,
"curly": [2, "multi-line"],
"import/namespace": [2, { "allowComputed": true }],
"no-confusing-arrow": 0,
"no-continue": 0,
"no-duplicate-imports": 0,
"no-else-return": 0,
"no-prototype-builtins": 0,
"no-underscore-dangle": 0,
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"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", "ForOfStatement", "LabeledStatement", "WithStatement"],
"no-return-assign": 0,
"no-bitwise": 0,
"no-plusplus": 0,
"no-multi-assign": 0
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"$Call": true,
"$Keys": true,
"$PropertyType": true
}
}