Skip to content

Commit aae8a45

Browse files
committed
Add eslint.
1 parent c3f1f54 commit aae8a45

File tree

2 files changed

+182
-0
lines changed

2 files changed

+182
-0
lines changed

Diff for: .eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/node_modules

Diff for: .eslintrc.yaml

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
parserOptions:
2+
ecmaVersion: 3
3+
sourceType: "module"
4+
env:
5+
browser: true
6+
node: true
7+
es6: false
8+
globals:
9+
jQuery: true
10+
Promise: true
11+
rules:
12+
no-console: 1
13+
no-constant-condition: 1
14+
comma-dangle: 2
15+
no-debugger: 2
16+
no-dupe-keys: 1
17+
no-empty-character-class: 2
18+
no-ex-assign: 2
19+
no-extra-boolean-cast: 1
20+
no-func-assign: 1
21+
no-inner-declarations: 1
22+
no-invalid-regexp: 2
23+
no-negated-in-lhs: 2
24+
no-obj-calls: 2
25+
no-sparse-arrays: 2
26+
no-unreachable: 2
27+
use-isnan: 2
28+
valid-typeof: 2
29+
curly:
30+
- 2
31+
- "all"
32+
eqeqeq:
33+
- 2
34+
- "allow-null"
35+
guard-for-in: 1
36+
no-else-return: 1
37+
no-labels:
38+
- 1
39+
-
40+
allowLoop: true
41+
no-eval: 1
42+
no-extend-native: 2
43+
no-extra-bind: 1
44+
no-implied-eval: 1
45+
no-iterator: 2
46+
no-irregular-whitespace: 1
47+
no-lone-blocks: 1
48+
no-loop-func: 1
49+
no-multi-str: 1
50+
no-native-reassign: 2
51+
no-new-wrappers: 2
52+
no-octal: 1
53+
no-octal-escape: 1
54+
no-proto: 2
55+
no-redeclare: 1
56+
no-self-compare: 2
57+
no-unneeded-ternary: 2
58+
no-with: 1
59+
radix: 2
60+
wrap-iife:
61+
- 2
62+
- "any"
63+
no-delete-var: 1
64+
no-dupe-args: 2
65+
no-duplicate-case: 2
66+
no-label-var: 1
67+
no-shadow-restricted-names: 2
68+
no-undef: 2
69+
no-undef-init: 2
70+
no-unused-vars:
71+
- 1
72+
-
73+
vars: "local"
74+
args: "none"
75+
no-use-before-define: 0
76+
brace-style:
77+
- 1
78+
- "stroustrup"
79+
- {}
80+
comma-spacing:
81+
- 2
82+
-
83+
before: false
84+
after: true
85+
comma-style:
86+
- 2
87+
- "last"
88+
new-parens: 1
89+
no-array-constructor: 2
90+
no-multi-spaces:
91+
- 2
92+
-
93+
exceptions:
94+
Property: true
95+
BinaryExpression: true
96+
VariableDeclarator: true
97+
no-new-object: 2
98+
no-spaced-func: 2
99+
no-trailing-spaces: 2
100+
no-extra-parens:
101+
- 2
102+
- "functions"
103+
no-mixed-spaces-and-tabs: 2
104+
one-var:
105+
- 2
106+
- "never"
107+
operator-linebreak:
108+
- 2
109+
- "before"
110+
quotes:
111+
- 2
112+
- "single"
113+
semi:
114+
- 2
115+
- "always"
116+
semi-spacing: 2
117+
keyword-spacing: 2
118+
key-spacing:
119+
- 2
120+
-
121+
beforeColon: false
122+
afterColon: true
123+
space-before-function-paren:
124+
- 2
125+
-
126+
anonymous: "always"
127+
named: "never"
128+
space-before-blocks:
129+
- 2
130+
- "always"
131+
computed-property-spacing:
132+
- 2
133+
- "never"
134+
space-in-parens:
135+
- 2
136+
- "never"
137+
space-unary-ops: 1
138+
spaced-comment: 0
139+
140+
max-nested-callbacks:
141+
- 1
142+
- 3
143+
max-depth:
144+
- 1
145+
- 6
146+
max-len:
147+
- 2
148+
- 120
149+
- 4
150+
-
151+
ignoreUrls: true
152+
ignoreComments: true
153+
max-params:
154+
- 1
155+
- 6
156+
157+
space-infix-ops: 2
158+
dot-notation:
159+
- 2
160+
-
161+
allowKeywords: true
162+
allowPattern: "^catch$"
163+
164+
arrow-spacing: 2
165+
constructor-super: 2
166+
no-confusing-arrow:
167+
- 2
168+
-
169+
allowParens: true
170+
no-class-assign: 1
171+
no-const-assign: 2
172+
no-dupe-class-members: 1
173+
no-this-before-super: 1
174+
no-var: 0
175+
no-duplicate-imports: 1
176+
prefer-rest-params: 2
177+
unicode-bom: 1
178+
max-statements-per-line: 2
179+
180+
no-useless-constructor: 1

0 commit comments

Comments
 (0)