UNPKG

1.42 kBJSONView Raw
1{
2 "rules": {
3 "no-console": "off",
4 "no-extra-parens": "warn",
5 "valid-jsdoc": "off",
6 "new-cap": ["warn", {"properties": false}],
7 "comma-spacing": ["error", {"before": false, "after": true}],
8 "no-extra-boolean-cast": "warn",
9 "strict": ["warn", "global"],
10 "no-var": "error",
11 "prefer-const": "error",
12 "semi": ["error", "always"],
13 "space-before-function-paren": ["warn", "always"],
14 "keyword-spacing": ["warn"],
15 "prefer-arrow-callback": "error",
16 "arrow-parens": ["error", "as-needed"],
17 "comma-style": ["warn", "last"],
18 "no-bitwise": "off",
19 "no-cond-assign": ["error", "except-parens"],
20 "curly": "off",
21 "eqeqeq": "error",
22 "no-extend-native": "error",
23 "wrap-iife": ["error", "any"],
24 "indent": ["error", 2, {"SwitchCase": 1}],
25 "no-use-before-define": "off",
26 "no-caller": "error",
27 "no-undef": "error",
28 "no-unused-vars": "error",
29 "no-irregular-whitespace": "error",
30 "max-depth": ["error", 8],
31 "quotes": ["error", "single", {"avoidEscape": true}],
32 "linebreak-style": "error",
33 "no-loop-func": "warn",
34 "object-shorthand": "error",
35 "one-var-declaration-per-line": "warn",
36 "comma-dangle": "warn",
37 "no-shadow": "warn",
38 "camelcase": "warn"
39 },
40 "parserOptions": {
41 "ecmaVersion": 2017,
42 "sourceType": "module"
43 },
44 "env": {
45 "node": true,
46 "mocha": true,
47 "es6": true
48 }
49}