UNPKG

5.18 kBPlain TextView Raw
1{
2 "env": {
3 "node": true,
4 "browser": true,
5 "jest": true,
6 "es6": true,
7 "mocha": true
8 },
9 "parserOptions": {
10 "ecmaFeatures": {
11 "jsx": true
12 },
13 "sourceType": "module"
14 },
15 "parser" : "babel-eslint",
16 "plugins": [
17 "react",
18 "jest"
19 ],
20 "extends": [
21 "airbnb",
22 "prettier",
23 "plugin:jest/recommended"
24 ],
25 "rules": {
26 "jsx-a11y/media-has-caption": 0,
27 "jsx-a11y/click-events-have-key-events": 0,
28 "jsx-a11y/no-noninteractive-element-interactions": 0,
29 "jsx-a11y/no-static-element-interactions": 0,
30
31 "jest/no-disabled-tests": "warn",
32 "jest/no-focused-tests": "error",
33 "jest/no-identical-title": "error",
34 "jest/valid-expect": "error",
35
36 "react/jsx-uses-react": "error",
37 "react/jsx-uses-vars": "error",
38 "react/jsx-indent": [2, 4],
39 "react/jsx-indent-props": [2, 4],
40 "react/jsx-filename-extension": [1, { "extensions": [".js"] }],
41 "react/no-did-update-set-state": 0,
42 "react/forbid-foreign-prop-types": 0,
43
44 "import/no-unresolved": 0,
45 "import/no-extraneous-dependencies": 0,
46 "import/no-named-as-default": 0,
47
48 "comma-dangle": [2, "never"],
49 "no-cond-assign": [0, "always"],
50 "no-console": 0,
51 "no-constant-condition": 1,
52 "no-control-regex": 2,
53 "no-debugger": 1,
54 "no-dupe-keys": 2,
55 "no-empty": 1,
56 "no-empty-character-class": 1,
57 "no-ex-assign": 1,
58 "no-extra-boolean-cast": 1,
59 "no-extra-semi": 1,
60 "no-func-assign": 2,
61 "no-inner-declarations": 2,
62 "no-invalid-regexp": 1,
63 "no-irregular-whitespace": 1,
64 "no-negated-in-lhs": 1,
65 "no-obj-calls": 2,
66 "no-regex-spaces": 1,
67 "no-sparse-arrays": 2,
68 "no-unreachable": 1,
69 "use-isnan": 2,
70 "valid-jsdoc": 0,
71 "valid-typeof": 2,
72 "no-multi-assign": 0,
73
74 "block-scoped-var": 1,
75 "complexity": [1, 14],
76 "consistent-return": 0,
77 "curly": [0, "multi"],
78 "default-case": 0,
79 "dot-notation": 1,
80 "eqeqeq": 2,
81 "guard-for-in": 2,
82 "no-alert": 0,
83 "no-caller": 2,
84 "no-div-regex": 1,
85 "no-else-return": 1,
86 "no-eq-null": 2,
87 "no-eval": 2,
88 "no-extend-native": 2,
89 "no-extra-bind": 2,
90 "no-fallthrough": 1,
91 "no-floating-decimal": 1,
92 "no-implied-eval": 2,
93 "no-iterator": 2,
94 "no-labels": 2,
95 "no-lone-blocks": 1,
96 "no-loop-func": 0,
97 "no-multi-spaces": 0,
98 "no-multi-str": 1,
99 "no-native-reassign": 2,
100 "no-new": 1,
101 "no-new-func": 2,
102 "no-octal": 2,
103 "no-octal-escape": 2,
104 "no-process-env": 0,
105 "no-proto": 1,
106 "no-redeclare": 2,
107 "no-return-assign": 0,
108 "no-script-url": 1,
109 "no-self-compare": 1,
110 "no-sequences": 2,
111 "no-unused-expressions": 0,
112 "no-void": 2,
113 "no-warning-comments": 0,
114 "no-with": 2,
115 "radix": 2,
116 "vars-on-top": 1,
117 "wrap-iife": [2, "outside"],
118 "yoda": [1, "never"],
119
120 "global-strict": [0],
121 "no-extra-strict": [0],
122 "strict": [0],
123
124 "no-catch-shadow": 1,
125 "no-delete-var": 2,
126 "no-label-var": 2,
127 "no-shadow": [1, { "hoist": "functions" }],
128 "no-shadow-restricted-names": 2,
129 "no-undef": 0,
130 "no-undef-init": 0,
131 "no-undefined": 0,
132 "no-unused-vars": 1,
133 "no-use-before-define": 0,
134
135 "handle-callback-err": 1,
136 "no-mixed-requires": 0,
137 "no-path-concat": 1,
138 "no-process-exit": 1,
139 "no-restricted-modules": 1,
140 "no-restricted-syntax": [
141 "error",
142 "ForInStatement",
143 "LabeledStatement",
144 "WithStatement"
145 ],
146 "no-sync": 1,
147
148 "brace-style": [1, "1tbs", {"allowSingleLine": true}],
149 "camelcase": 2,
150 "comma-spacing": [2, {"before": false, "after": true}],
151 "comma-style": [2, "last"],
152 "consistent-this": [2, "self"],
153 "eol-last": 0,
154 "func-names": 0,
155 "func-style": [2, "expression"],
156 "key-spacing": [1, {
157 "beforeColon": false,
158 "afterColon": true
159 }],
160 "max-nested-callbacks": [2, 3],
161 "new-cap": 0,
162 "new-parens": 2,
163 "no-array-constructor": 2,
164 "no-inline-comments": 0,
165 "no-lonely-if": 2,
166 "no-mixed-spaces-and-tabs": 0,
167 "no-multiple-empty-lines": 2,
168 "no-nested-ternary": 0,
169 "no-new-object": 2,
170 "semi-spacing": [2, {"before": false, "after": true}],
171 "no-spaced-func": 2,
172 "prefer-const": 2,
173 "no-ternary": 0,
174 "no-trailing-spaces": 2,
175 "no-underscore-dangle": 0,
176 "no-extra-parens": 0,
177 "one-var": 0,
178 "operator-assignment": 1,
179 "padded-blocks": 0,
180 "quote-props": [2, "as-needed"],
181 "quotes": ["error", "single", { "allowTemplateLiterals": true }],
182 "semi": [2, "never"],
183 "sort-vars": 0,
184 "keyword-spacing": [2, {"before": true, "after": true}],
185 "space-before-blocks": [1, "always"],
186 "object-curly-spacing": [1, "always"],
187 "array-bracket-spacing": 0,
188 "computed-property-spacing": [2, "never"],
189 "space-in-parens": [2, "never"],
190 "space-infix-ops": 2,
191 "space-unary-ops": [2, { "words": true, "nonwords": false }],
192 "spaced-comment": 0,
193 "wrap-regex": 2,
194 "max-depth": [2, 3],
195 "max-len": [2, {"code": 120, "ignoreUrls": true}],
196 "max-params": [2, 6],
197 "max-statements": [2, 30],
198 "no-bitwise": 2,
199 "no-plusplus": 0
200 }
201}
\No newline at end of file