-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
67 lines (67 loc) · 2.07 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"extends": [
"react-app",
"plugin:react/jsx-runtime",
"airbnb",
"plugin:flowtype/recommended"
],
"env": {
"browser": true
},
"plugins": [
"flowtype",
"react-hooks"
],
"ignorePatterns": [".netx/", "node_modules/"],
"rules": {
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-default-props": 0,
"react/default-props-match-prop-types": 0,
"object-curly-newline": ["error", {
"ImportDeclaration": { "multiline": true, "minProperties": 3 },
"ExportDeclaration": "never"
}],
"react/destructuring-assignment": [2, "always", { "ignoreClassFields": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-case-declarations": "off",
"no-plusplus": "off",
"prefer-destructuring": ["error", {
"array": false,
"object": false
}, {
"enforceForRenamedProperties": false
}],
"no-restricted-syntax": "off",
"func-names": "off",
"no-underscore-dangle": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-nested-ternary": "off",
"react/jsx-no-bind": "off",
"react/no-did-update-set-state": "off",
"flowtype/no-types-missing-file-annotation": 0,
"import/prefer-default-export": "off",
"no-return-assign": "off",
"import/no-extraneous-dependencies": "off",
"max-len": "off",
"react/no-unused-prop-types": "off",
"react/prop-types": 0,
"consistent-return": "off",
"no-param-reassign": "off",
"no-console": "off",
"react/react-in-jsx-scope": "off",
"react/function-component-definition": "off",
"react/prefer-exact-props": "off",
"react/jsx-no-useless-fragment": "off"
}
}