Skip to content

Commit 0155d47

Browse files
committed
Build: Update ESLint settings
1 parent 402e99c commit 0155d47

File tree

3 files changed

+210
-16
lines changed

3 files changed

+210
-16
lines changed

.eslintrc

-15
This file was deleted.

.eslintrc.js

+209
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
module.exports = {
2+
"env": {
3+
"node": true
4+
},
5+
"rules": {
6+
"accessor-pairs": 2,
7+
"array-bracket-spacing": 2,
8+
"arrow-body-style": 2,
9+
"arrow-parens": 2,
10+
"arrow-spacing": 2,
11+
"block-scoped-var": 2,
12+
"block-spacing": 2,
13+
"brace-style": [
14+
2,
15+
"1tbs"
16+
],
17+
"camelcase": 2,
18+
"comma-dangle": [
19+
2,
20+
"never"
21+
],
22+
"comma-spacing": [
23+
2,
24+
{
25+
"after": true,
26+
"before": false
27+
}
28+
],
29+
"comma-style": 2,
30+
"complexity": 2,
31+
"computed-property-spacing": [
32+
2,
33+
"never"
34+
],
35+
"consistent-this": 2,
36+
"constructor-super": 2,
37+
"curly": 2,
38+
"dot-location": 2,
39+
"dot-notation": [
40+
2,
41+
{
42+
"allowKeywords": false
43+
}
44+
],
45+
"eol-last": 2,
46+
"generator-star-spacing": 2,
47+
"guard-for-in": 2,
48+
"handle-callback-err": 2,
49+
"id-match": 2,
50+
"indent": 2,
51+
"jsx-quotes": 2,
52+
"key-spacing": 2,
53+
"linebreak-style": [
54+
2,
55+
"unix"
56+
],
57+
"max-nested-callbacks": 2,
58+
"new-cap": 2,
59+
"new-parens": 2,
60+
"no-alert": 2,
61+
"no-array-constructor": 2,
62+
"no-arrow-condition": 2,
63+
"no-bitwise": 2,
64+
"no-caller": 2,
65+
"no-case-declarations": 2,
66+
"no-catch-shadow": 2,
67+
"no-class-assign": 2,
68+
"no-cond-assign": 2,
69+
"no-console": 2,
70+
"no-const-assign": 2,
71+
"no-continue": 2,
72+
"no-control-regex": 2,
73+
"no-debugger": 2,
74+
"no-delete-var": 2,
75+
"no-div-regex": 2,
76+
"no-dupe-args": 2,
77+
"no-dupe-class-members": 2,
78+
"no-dupe-keys": 2,
79+
"no-duplicate-case": 2,
80+
"no-else-return": 2,
81+
"no-empty": 2,
82+
"no-empty-character-class": 2,
83+
"no-empty-label": 2,
84+
"no-empty-pattern": 2,
85+
"no-eval": 2,
86+
"no-ex-assign": 2,
87+
"no-extend-native": 2,
88+
"no-extra-bind": 2,
89+
"no-extra-boolean-cast": 2,
90+
"no-extra-parens": [
91+
2,
92+
"functions"
93+
],
94+
"no-extra-semi": 2,
95+
"no-fallthrough": 2,
96+
"no-floating-decimal": 2,
97+
"no-func-assign": 2,
98+
"no-implicit-coercion": 2,
99+
"no-implied-eval": 2,
100+
"no-inner-declarations": [
101+
2,
102+
"functions"
103+
],
104+
"no-invalid-regexp": 2,
105+
"no-invalid-this": 2,
106+
"no-irregular-whitespace": 2,
107+
"no-iterator": 2,
108+
"no-label-var": 2,
109+
"no-labels": 2,
110+
"no-lone-blocks": 2,
111+
"no-loop-func": 2,
112+
"no-mixed-requires": 2,
113+
"no-mixed-spaces-and-tabs": 2,
114+
"no-multi-str": 2,
115+
"no-multiple-empty-lines": 2,
116+
"no-native-reassign": 2,
117+
"no-negated-in-lhs": 2,
118+
"no-nested-ternary": 2,
119+
"no-new": 2,
120+
"no-new-func": 2,
121+
"no-new-object": 2,
122+
"no-new-require": 2,
123+
"no-new-wrappers": 2,
124+
"no-obj-calls": 2,
125+
"no-octal": 2,
126+
"no-octal-escape": 2,
127+
"no-path-concat": 2,
128+
"no-process-env": 2,
129+
"no-process-exit": 2,
130+
"no-proto": 2,
131+
"no-redeclare": 2,
132+
"no-regex-spaces": 2,
133+
"no-restricted-modules": 2,
134+
"no-restricted-syntax": 2,
135+
"no-return-assign": 2,
136+
"no-script-url": 2,
137+
"no-self-compare": 2,
138+
"no-sequences": 2,
139+
"no-shadow-restricted-names": 2,
140+
"no-spaced-func": 2,
141+
"no-sparse-arrays": 2,
142+
"no-sync": 2,
143+
"no-this-before-super": 2,
144+
"no-throw-literal": 2,
145+
"no-trailing-spaces": 2,
146+
"no-undef": 2,
147+
"no-undef-init": 2,
148+
"no-unexpected-multiline": 2,
149+
"no-unneeded-ternary": 2,
150+
"no-unreachable": 2,
151+
"no-unused-expressions": 2,
152+
"no-unused-vars": 2,
153+
"no-use-before-define": [
154+
2,
155+
"nofunc"
156+
],
157+
"no-useless-call": 2,
158+
"no-useless-concat": 2,
159+
"no-void": 2,
160+
"no-with": 2,
161+
"object-curly-spacing": 2,
162+
"operator-assignment": [
163+
2,
164+
"always"
165+
],
166+
"operator-linebreak": 2,
167+
"prefer-const": 2,
168+
"prefer-spread": 2,
169+
"quotes": [
170+
2,
171+
"single"
172+
],
173+
"radix": 2,
174+
"require-yield": 2,
175+
"semi": [
176+
2,
177+
"always"
178+
],
179+
"semi-spacing": [
180+
2,
181+
{
182+
"after": true,
183+
"before": false
184+
}
185+
],
186+
"space-before-keywords": [
187+
2,
188+
"always"
189+
],
190+
"space-in-parens": 2,
191+
"space-infix-ops": 2,
192+
"space-return-throw-case": 2,
193+
"space-unary-ops": 2,
194+
"strict": [
195+
2,
196+
"function"
197+
],
198+
"use-isnan": 2,
199+
"valid-jsdoc": 2,
200+
"valid-typeof": 2,
201+
"wrap-iife": 2,
202+
"wrap-regex": 2,
203+
"yield-star-spacing": 2,
204+
"yoda": [
205+
2,
206+
"never"
207+
]
208+
}
209+
};

lib/typed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@
10001000
return expr;
10011001
}
10021002

1003-
elements = [ expr ];
1003+
elements = [expr];
10041004
consume(Token.PIPE);
10051005
while (true) {
10061006
elements.push(parseTypeExpression());

0 commit comments

Comments
 (0)