-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
115 lines (115 loc) · 3.84 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"extends": ["airbnb", "airbnb/hooks"],
"rules": {
"react/jsx-sort-props": [2, {
"callbacksLast": true,
"shorthandLast": true,
"shorthandFirst": false,
"ignoreCase": false,
"noSortAlphabetically": false,
"multiline": "last",
"locale": "auto"
}],
"react/jsx-max-props-per-line": [1, {"maximum": 1}],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-indent-props": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"react/prop-types": "error",
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"react/button-has-type": 0,
"react/no-danger": 0,
"react/function-component-definition": 0,
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/tabindex-no-positive": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/html-has-lang": "off",
"jsx-a11y/media-has-caption": "off",
"consistent-return": "off",
"array-callback-return": "off",
"max-len": "off",
"max-lines-per-function": "off",
"linebreak-style": "off",
"default-case": "off",
"no-underscore-dangle": "off",
"no-return-assign": "off",
"no-useless-escape": "off",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-await-in-loop": "error",
"no-cond-assign": "error",
"no-extra-parens": "error",
"no-extra-semi": "error",
"no-import-assign": "error",
"no-irregular-whitespace": "error",
"no-unexpected-multiline": "error",
"no-else-return": "error",
"no-alert": "error",
"no-eq-null": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-multi-spaces": "error",
"no-redeclare": "error",
"no-nested-ternary": "error",
"no-plusplus": "error",
"no-self-compare": "error",
"no-use-before-define": "error",
"no-inline-comments": "error",
"no-unused-vars": "error",
"no-var": "error",
"vars-on-top": "error",
"eqeqeq": "error",
"valid-typeof": "error",
"complexity": ["error", 30],
"indent": ["error", 4],
"max-depth": ["error", 4],
"max-nested-callbacks": ["error", 10],
"max-params": ["error", 18],
"capitalized-comments": ["error"],
"arrow-body-style": ["error", "as-needed"],
"function-call-argument-newline": ["error", "always"],
"multiline-comment-style": ["error", "bare-block"],
"curly": ["error", "multi-or-nest"],
"quotes": ["error", "double"],
"dot-location": ["error", "object"],
"dot-notation": ["error", { "allowKeywords": false }],
"camelcase": ["error", {"properties": "always", "ignoreDestructuring": true, "ignoreImports": true, "ignoreGlobals": false}],
"sort-destructure-keys/sort-destructure-keys": 2,
"destructuring-newline/object-property-newline": 2,
"object-property-newline": ["error", {"allowAllPropertiesOnSameLine": false, "allowMultiplePropertiesPerLine": false}],
"max-lines": ["error", {"max": 700, "skipBlankLines": true, "skipComments": true}],
"func-style": ["error", "expression", {"allowArrowFunctions": true}],
"sort-keys": ["error", "asc", {"caseSensitive": true, "natural": true, "minKeys": 2}],
"sort-keys-fix/sort-keys-fix": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"default-param-last": 0,
"radix": 0,
"import/no-unresolved": 0,
"import/no-cycle": 0,
"import/prefer-default-export": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0
},
"plugins": ["simple-import-sort", "sort-destructure-keys", "sort-keys-fix", "destructuring-newline"],
"settings": {
"import/extensions": [".js", ".jsx"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"],
"paths": ["src"]
}
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"ecmaVersion": 2020
}
}