UNPKG

3.98 kBPlain TextView Raw
1{
2 "root": true,
3 "parserOptions": {
4 "ecmaVersion": "7",
5 "sourceType": "module",
6 "ecmaFeatures": {
7 "impliedStrict": true,
8 "experimentalObjectRestSpread": true
9 },
10 },
11 "env": {
12 "es6": true,
13 "node": true,
14 "mocha": true
15 },
16 "rules": {
17 "strict": [2, "global"],
18 "no-constant-condition": [2, {"checkLoops": false}],
19 "no-undef": 2,
20 "no-use-before-define": 2,
21 "new-cap": 0,
22 "no-const-assign": 2,
23 "key-spacing": 0,
24 "block-spacing": [2, "never"],
25 "array-bracket-spacing": [2, "never"],
26 "brace-style": [2, "1tbs", {"allowSingleLine": true}],
27 "camelcase": [2, {"properties": "always"}],
28 "comma-spacing": [2, {"before": false, "after": true}],
29 "max-statements-per-line": [2, {"max": 1}],
30 "no-debugger": 1,
31 "no-trailing-spaces": 1,
32 "eol-last": 0,
33 "no-dupe-keys": 2,
34 "no-dupe-args": 2,
35 "no-dupe-class-members": 2,
36 "max-len": [1, {"code": 110, "ignoreUrls": true}],
37 "newline-before-return": 1,
38 "newline-after-var": 1,
39 "newline-per-chained-call": ["error", {"ignoreChainWithDepth":2 }],
40 "prefer-rest-params": 2,
41 "func-style": [2, "expression"],
42 "no-useless-rename": 1,
43 "prefer-spread": 2,
44 "template-curly-spacing": [2, "never"],
45 "no-useless-constructor": 1,
46 "no-useless-computed-key": 2,
47 "no-this-before-super": 2,
48 "no-class-assign": 2,
49 "no-duplicate-imports": 2,
50 "no-duplicate-case": 2,
51 "no-empty-character-class": 2,
52 "no-ex-assign": 2,
53 "no-empty": 2,
54 "no-extra-boolean-cast": 1,
55 "quote-props": [2, "as-needed"],
56 "no-return-assign": 0,
57 "one-var-declaration-per-line": [2, "always"],
58 "no-whitespace-before-property": 1,
59 "no-underscore-dangle": 0,
60 "max-nested-callbacks": [2, 4],
61 "space-unary-ops": [1, {
62 "words": true,
63 "nonwords": false
64 }],
65 "space-infix-ops": 2,
66 "keyword-spacing": [2, {"before": true, "after": true}],
67 "space-in-parens": [2, "never"],
68 "space-before-function-paren": [1, "never"],
69 "max-depth": [2, 6],
70 "linebreak-style": [2, "unix"],
71 "space-before-blocks": [1, "always"],
72 "arrow-spacing": [2, {"before": true, "after": true}],
73 "generator-star-spacing": [2, {"before": true, "after": false}],
74 "constructor-super": 2,
75 "object-shorthand": [2, "always"],
76 "no-unused-vars": 2,
77 "no-multi-spaces": 0,
78 "no-multi-str": 2,
79 "no-native-reassign": 2,
80 "no-redeclare": 2,
81 "no-self-compare": 2,
82 "no-throw-literal": 2,
83 "wrap-iife": [2, "inside"],
84 "operator-linebreak": [2, "after"],
85 "operator-assignment": [2, "always"],
86 "object-curly-spacing": [2, "never"],
87 "no-spaced-func": 2,
88 "no-unneeded-ternary": 1,
89 "padded-blocks": [2, "never"],
90 "prefer-template": 2,
91 "no-func-assign": 2,
92 "no-inner-declarations": 2,
93 "no-invalid-regexp": 2,
94 "no-regex-spaces": 1,
95 "no-unreachable": 1,
96 "no-proto": 2,
97 "no-sparse-arrays": 2,
98 "valid-typeof": 2,
99 "block-scoped-var": 2,
100 "dot-location": [2, "property"],
101 "dot-notation": 2,
102 "eqeqeq": 2,
103 "no-alert": 2,
104 "no-case-declarations": 2,
105 "no-empty-pattern": 2,
106 "no-eval": 2,
107 "no-extra-bind": 1,
108 "no-labels": 2,
109 "no-lone-blocks": 2,
110 "no-lonely-if": 2,
111 "no-multiple-empty-lines": 1,
112 "no-nested-ternary": 2,
113 "no-restricted-syntax": ["error", "WithStatement"],
114 "no-mixed-spaces-and-tabs": 1,
115 "no-loop-func": 2,
116 "use-isnan": 2,
117 "no-irregular-whitespace": 1,
118 "no-negated-in-lhs": 2,
119 "no-obj-calls": 2,
120 "prefer-const": 0,
121 "one-var": [2, {"uninitialized": "always"}],
122 "curly": 0,
123 "computed-property-spacing": [2, "never"],
124 "comma-style": [2, "last"],
125 "no-console": 1,
126 "indent": [2, 2, {
127 "SwitchCase": 1,
128 "VariableDeclarator": {
129 "var": 2,
130 "let": 2,
131 "const": 3
132 }
133 }],
134 "quotes": [2, "single"],
135 "semi": [2, "never"],
136 "no-extra-semi": 0
137 }
138}