UNPKG

4.67 kBPlain TextView Raw
1{
2 "env": {
3 "browser": true,
4 "node": true
5 },
6 "rules": {
7 "block-scoped-var": [0],
8 "brace-style": [2, "1tbs", {"allowSingleLine": true}],
9 "camelcase": [0],
10 "comma-dangle": [0],
11 "comma-spacing": [2],
12 "comma-style": [2, "last"],
13 "complexity": [0, 11],
14 "consistent-return": [2],
15 "consistent-this": [0, "that"],
16 "curly": [2, "multi-line"],
17 "default-case": [2],
18 "dot-notation": [2, {"allowKeywords": true}],
19 "eol-last": [2],
20 "eqeqeq": [2],
21 "func-names": [0],
22 "func-style": [0, "declaration"],
23 "generator-star-spacing": [2, "after"],
24 "guard-for-in": [0],
25 "handle-callback-err": [0],
26 "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
27 "quotes": [2, "single", "avoid-escape"],
28 "max-depth": [0, 4],
29 "max-len": [0, 80, 4],
30 "max-nested-callbacks": [0, 2],
31 "max-params": [0, 3],
32 "max-statements": [0, 10],
33 "new-parens": [2],
34 "new-cap": [0],
35 "newline-after-var": [0],
36 "no-alert": [2],
37 "no-array-constructor": [2],
38 "no-bitwise": [0],
39 "no-caller": [2],
40 "no-catch-shadow": [2],
41 "no-cond-assign": [2],
42 "no-console": [0],
43 "no-constant-condition": [1],
44 "no-continue": [2],
45 "no-control-regex": [2],
46 "no-debugger": [2],
47 "no-delete-var": [2],
48 "no-div-regex": [0],
49 "no-dupe-args": [2],
50 "no-dupe-keys": [2],
51 "no-duplicate-case": [2],
52 "no-else-return": [0],
53 "no-empty": [2],
54 "no-empty-character-class": [2],
55 "no-labels": [2],
56 "no-eq-null": [0],
57 "no-eval": [2],
58 "no-ex-assign": [2],
59 "no-extend-native": [1],
60 "no-extra-bind": [2],
61 "no-extra-boolean-cast": [2],
62 "no-extra-semi": [1],
63 "no-fallthrough": [2],
64 "no-floating-decimal": [2],
65 "no-func-assign": [2],
66 "no-implied-eval": [2],
67 "no-inline-comments": [0],
68 "no-inner-declarations": [2, "functions"],
69 "no-invalid-regexp": [2],
70 "no-irregular-whitespace": [2],
71 "no-iterator": [2],
72 "no-label-var": [2],
73 "no-lone-blocks": [2],
74 "no-lonely-if": [2],
75 "no-loop-func": [2],
76 "no-mixed-requires": [0, false],
77 "no-mixed-spaces-and-tabs": [2, false],
78 "no-multi-spaces": [2],
79 "no-multi-str": [2],
80 "no-multiple-empty-lines": [2, {"max": 2}],
81 "no-native-reassign": [1],
82 "no-negated-in-lhs": [2],
83 "no-nested-ternary": [0],
84 "no-new": [2],
85 "no-new-func": [2],
86 "no-new-object": [2],
87 "no-new-require": [0],
88 "no-new-wrappers": [2],
89 "no-obj-calls": [2],
90 "no-octal": [2],
91 "no-octal-escape": [2],
92 "no-param-reassign": [2],
93 "no-path-concat": [0],
94 "no-plusplus": [0],
95 "no-process-env": [0],
96 "no-process-exit": [2],
97 "no-proto": [2],
98 "no-redeclare": [2],
99 "no-regex-spaces": [2],
100 "no-reserved-keys": [0],
101 "no-restricted-modules": [0],
102 "no-return-assign": [2],
103 "no-script-url": [2],
104 "no-self-compare": [0],
105 "no-sequences": [2],
106 "no-shadow": [2],
107 "no-shadow-restricted-names": [2],
108 "no-spaced-func": [2],
109 "no-sparse-arrays": [2],
110 "no-sync": [0],
111 "no-ternary": [0],
112 "no-throw-literal": [2],
113 "no-trailing-spaces": [2],
114 "no-undef": [2],
115 "no-undef-init": [2],
116 "no-undefined": [0],
117 "no-underscore-dangle": [2],
118 "no-unreachable": [2],
119 "no-unused-expressions": [2],
120 "no-unused-vars": [1, {"vars": "all", "args": "after-used"}],
121 "no-use-before-define": [2],
122 "no-void": [0],
123 "no-warning-comments": [0, {"terms": ["todo", "fixme", "xxx"], "location": "start"}],
124 "no-with": [2],
125 "no-extra-parens": [2],
126 "one-var": [0],
127 "operator-assignment": [0, "always"],
128 "operator-linebreak": [2, "after"],
129 "padded-blocks": [0],
130 "quote-props": [0],
131 "radix": [0],
132 "semi": [2],
133 "semi-spacing": [2, {"before": false, "after": true}],
134 "sort-vars": [0],
135 "keyword-spacing": [2, {"after": true}],
136 "space-before-function-paren": [2, {"anonymous": "always", "named": "always"}],
137 "space-before-blocks": [0, "always"],
138 "space-in-brackets": [
139 0, "never", {
140 "singleValue": true,
141 "arraysInArrays": false,
142 "arraysInObjects": false,
143 "objectsInArrays": true,
144 "objectsInObjects": true,
145 "propertyName": false
146 }
147 ],
148 "space-in-parens": [2, "never"],
149 "space-infix-ops": [2],
150 "space-unary-ops": [2, {"words": true, "nonwords": false}],
151 "spaced-line-comment": [0, "always"],
152 "strict": [2, "never"],
153 "use-isnan": [2],
154 "valid-jsdoc": [0],
155 "valid-typeof": [2],
156 "vars-on-top": [0],
157 "wrap-iife": [2],
158 "wrap-regex": [2],
159 "yoda": [2, "never", {"exceptRange": true}]
160 }
161}