UNPKG

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