1 | module.exports = {
|
2 | parser: "babel-eslint",
|
3 | extends: "eslint:recommended",
|
4 | plugins: ["flow-vars", "babel"],
|
5 | rules: {
|
6 | "flow-vars/define-flow-type": 1,
|
7 | "flow-vars/use-flow-type": 1,
|
8 | quotes: [2, "double"],
|
9 | "no-var": 2,
|
10 | "keyword-spacing": 2,
|
11 | strict: 0,
|
12 | "no-underscore-dangle": 0,
|
13 | curly: 0,
|
14 | "no-multi-spaces": 0,
|
15 | "key-spacing": 0,
|
16 | "no-return-assign": 0,
|
17 | "consistent-return": 0,
|
18 | "no-shadow": 0,
|
19 | "comma-dangle": 0,
|
20 | "no-use-before-define": 0,
|
21 | "no-empty": 0,
|
22 | "new-parens": 0,
|
23 | "no-cond-assign": 0,
|
24 | "no-fallthrough": 0,
|
25 | "new-cap": 0,
|
26 | "no-loop-func": 0,
|
27 | "no-unreachable": 0,
|
28 | "no-labels": 0,
|
29 | "no-process-exit": 0,
|
30 | camelcase: 0,
|
31 | "no-console": 0,
|
32 | "no-constant-condition": 0,
|
33 | "no-inner-declarations": 0,
|
34 | "no-case-declarations": 0,
|
35 | semi: [2, "always"],
|
36 |
|
37 |
|
38 | "indent": [2, 2],
|
39 |
|
40 |
|
41 | "max-len": [2, 110, 2],
|
42 |
|
43 |
|
44 | "babel/arrow-parens": [2, "always"],
|
45 |
|
46 | "arrow-spacing": [2, { before: true, after: true }],
|
47 |
|
48 | "no-confusing-arrow": 2,
|
49 |
|
50 | "space-before-blocks": "always"
|
51 | },
|
52 |
|
53 | globals: {
|
54 |
|
55 | Iterator: true,
|
56 | $Keys: true
|
57 | },
|
58 |
|
59 | env: {
|
60 | node: true,
|
61 | es6: true,
|
62 | browser: true
|
63 | }
|
64 | };
|