UNPKG

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