UNPKG

4.68 kBPlain TextView Raw
1ecmaFeatures:
2 arrowFunctions: true,
3 binaryLiterals: true,
4 blockBindings: true,
5 classes: false,
6 defaultParams: true,
7 destructuring: true,
8 forOf: true,
9 generators: true,
10 modules: true,
11 objectLiteralComputedProperties: true,
12 objectLiteralDuplicateProperties: true,
13 objectLiteralShorthandMethods: true,
14 objectLiteralShorthandProperties: true,
15 octalLiterals: true,
16 regexUFlag: true,
17 regexYFlag: true,
18 spread: true,
19 superInFunctions: false,
20 templateStrings: true,
21 unicodeCodePointEscapes: true,
22 globalReturn: true,
23 jsx: true
24
25
26parserOptions:
27 sourceType: module
28
29env:
30 amd: true
31 browser: true
32 es6: true
33 jquery: true
34 node: true
35
36rules:
37 comma-dangle: [2, never]
38 no-cond-assign: 2
39 no-console: 0
40 no-constant-condition: 2
41 no-control-regex: 2
42 no-debugger: 2
43 no-dupe-args: 2
44 no-dupe-keys: 2
45 no-duplicate-case: 2
46 no-empty: 2
47 no-empty-character-class: 2
48 no-ex-assign: 2
49 no-extra-boolean-cast: 2
50 no-extra-parens: 0
51 no-extra-semi: 2
52 no-func-assign: 2
53 no-inner-declarations: [2, functions]
54 no-invalid-regexp: 2
55 no-irregular-whitespace: 2
56 no-negated-in-lhs: 2
57 no-obj-calls: 2
58 no-regex-spaces: 2
59 no-sparse-arrays: 2
60 no-unexpected-multiline: 2
61 no-unreachable: 2
62 use-isnan: 2
63 valid-jsdoc: 0
64 valid-typeof: 2
65
66 # Best Practices
67 accessor-pairs: 2
68 block-scoped-var: 0
69 complexity: [2, 20]
70 consistent-return: [2]
71 curly: [2, "multi-line"]
72 default-case: [2]
73 dot-location: 0
74 dot-notation: [2, {"allowKeywords": true}]
75 eqeqeq: 2
76 guard-for-in: 2
77 no-alert: 2
78 no-caller: 2
79 no-case-declarations: 2
80 no-div-regex: 2
81 no-else-return: 0
82 no-empty-pattern: 2
83 no-eq-null: 2
84 no-eval: 2
85 no-extend-native: 2
86 no-extra-bind: 2
87 no-fallthrough: 2
88 no-floating-decimal: 0
89 no-implicit-coercion: 0
90 no-implied-eval: 2
91 no-invalid-this: 0
92 no-iterator: 2
93 no-labels: 0
94 no-lone-blocks: 2
95 no-loop-func: 2
96 no-magic-number: 0
97 no-multi-spaces: 0
98 no-multi-str: 0
99 no-native-reassign: 2
100 no-new-func: 2
101 no-new-wrappers: 2
102 no-new: 2
103 no-octal-escape: 2
104 no-octal: 2
105 no-proto: 2
106 no-redeclare: 2
107 no-return-assign: 2
108 no-script-url: 2
109 no-self-compare: 2
110 no-sequences: 0
111 no-throw-literal: 0
112 no-unused-expressions: 2
113 no-useless-call: 2
114 no-useless-concat: 2
115 no-void: 2
116 no-warning-comments: 0
117 no-with: 2
118 radix: 2
119 vars-on-top: 0
120 wrap-iife: 2
121 yoda: 0
122
123 # Strict
124 strict: 0
125
126 # Variables
127 init-declarations: 0
128 no-catch-shadow: 2
129 no-delete-var: 2
130 no-label-var: 2
131 no-shadow-restricted-names: 2
132 no-shadow: 0
133 no-undef-init: 2
134 no-undef: 0
135 no-undefined: 0
136 no-unused-vars: 0
137 no-use-before-define: 0
138
139 # Node.js and CommonJS
140 callback-return: 0
141 global-require: 1
142 handle-callback-err: 1
143 no-mixed-requires: 0
144 no-new-require: 0
145 no-path-concat: 2
146 no-process-exit: 2
147 no-restricted-modules: 0
148 no-sync: 0
149
150 # Stylistic Issues
151 array-bracket-spacing: 0
152 block-spacing: 0
153 brace-style: [2, "1tbs", {"allowSingleLine": true}]
154 camelcase: 0
155 comma-spacing: [2]
156 comma-style: [2, "last"]
157 computed-property-spacing: 0
158 consistent-this: 0
159 eol-last: 0
160 func-names: 0
161 func-style: 0
162 id-length: 0
163 id-match: 0
164 indent: [2, 2]
165 jsx-quotes: 0
166 key-spacing: 0
167 linebreak-style: [2, "unix"]
168 lines-around-comment: 0
169 max-depth: 0
170 max-len: 0
171 max-nested-callbacks: 0
172 max-params: 0
173 max-statements: [2, 30]
174 new-cap: 0
175 new-parens: 0
176 newline-after-var: 0
177 no-array-constructor: 0
178 no-bitwise: 0
179 no-continue: 0
180 no-inline-comments: 0
181 no-lonely-if: 0
182 no-mixed-spaces-and-tabs: 0
183 no-multiple-empty-lines: 0
184 no-negated-condition: 0
185 no-nested-ternary: 0
186 no-new-object: 0
187 no-plusplus: 0
188 no-restricted-syntax: 0
189 no-spaced-func: 0
190 no-ternary: 0
191 no-trailing-spaces: 0
192 no-underscore-dangle: 0
193 no-unneeded-ternary: 0
194 object-curly-spacing: 0
195 one-var: 0
196 operator-assignment: 0
197 operator-linebreak: 0
198 padded-blocks: 0
199 quote-props: 0
200 quotes: [1, "double"]
201 require-jsdoc: 0
202 semi-spacing: 0
203 semi: [2, "always"]
204 sort-vars: 0
205 space-after-keywords: 0
206 space-before-blocks: 0
207 space-before-function-paren: 0
208 space-before-keywords: 0
209 space-in-parens: 0
210 space-infix-ops: 0
211 space-return-throw-case: 0
212 space-unary-ops: 0
213 spaced-comment: 0
214 wrap-regex: 0
215
216 # ECMAScript 6
217 arrow-body-style: 0
218 arrow-parens: 0
219 arrow-spacing: 0
220 constructor-super: 0
221 generator-star-spacing: 0
222 no-arrow-condition: 0
223 no-class-assign: 0
224 no-const-assign: 0
225 no-dupe-class-members: 0
226 no-this-before-super: 0
227 no-var: 0
228 object-shorthand: 0
229 prefer-arrow-callback: 0
230 prefer-const: 0
231 prefer-reflect: 0
232 prefer-spread: 0
233 prefer-template: 0
234 require-yield: 0