1 |
3a515b92
|
cagy
|
{
|
2 |
|
|
"root": true,
|
3 |
|
|
"parserOptions": {
|
4 |
|
|
"ecmaVersion": 6
|
5 |
|
|
},
|
6 |
|
|
"env": {
|
7 |
|
|
"browser": true,
|
8 |
|
|
"commonjs": true,
|
9 |
|
|
"node": true,
|
10 |
|
|
"mocha": true
|
11 |
|
|
},
|
12 |
|
|
"extends": ["eslint:recommended"],
|
13 |
|
|
"rules": {
|
14 |
|
|
"array-bracket-spacing": ["warn", "never"],
|
15 |
|
|
"arrow-body-style": ["warn", "as-needed"],
|
16 |
|
|
"arrow-parens": ["warn", "as-needed"],
|
17 |
|
|
"arrow-spacing": "warn",
|
18 |
|
|
"brace-style": ["warn", "1tbs"],
|
19 |
|
|
"camelcase": "warn",
|
20 |
|
|
"comma-spacing": ["warn", {"after": true}],
|
21 |
|
|
"dot-notation": "warn",
|
22 |
|
|
"eqeqeq": ["warn", "smart"],
|
23 |
|
|
"indent": ["warn", 2, {
|
24 |
|
|
"SwitchCase": 1,
|
25 |
|
|
"FunctionDeclaration": {"parameters": 1},
|
26 |
|
|
"MemberExpression": 1,
|
27 |
|
|
"CallExpression": {"arguments": 1}
|
28 |
|
|
}],
|
29 |
|
|
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
|
30 |
|
|
"keyword-spacing": "warn",
|
31 |
|
|
"no-console": "off",
|
32 |
|
|
"no-empty": "off",
|
33 |
|
|
"no-multi-spaces": "warn",
|
34 |
|
|
"no-redeclare": "off",
|
35 |
|
|
"no-restricted-globals": ["warn", "Promise"],
|
36 |
|
|
"no-trailing-spaces": "warn",
|
37 |
|
|
"no-undef": "error",
|
38 |
|
|
"no-unused-vars": ["warn", {"args": "none"}],
|
39 |
|
|
"one-var": ["warn", "never"],
|
40 |
|
|
"padded-blocks": ["warn", "never"],
|
41 |
|
|
"object-curly-spacing": ["warn", "never"],
|
42 |
|
|
"quotes": ["warn", "single"],
|
43 |
|
|
"react/prop-types": "off",
|
44 |
|
|
"react/jsx-no-bind": "off",
|
45 |
|
|
"semi": ["warn", "always"],
|
46 |
|
|
"space-before-blocks": ["warn", "always"],
|
47 |
|
|
"space-before-function-paren": ["warn", "never"],
|
48 |
|
|
"space-in-parens": ["warn", "never"],
|
49 |
|
|
"strict": ["warn", "global"]
|
50 |
|
|
}
|
51 |
|
|
}
|