Skip to content

Commit 736a736

Browse files
TrottMylesBorins
authored andcommitted
tools: update ESLint to 3.19.0
Backport-PR-URL: #12504 PR-URL: #12162 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 312091a commit 736a736

File tree

373 files changed

+23484
-10735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+23484
-10735
lines changed

tools/eslint/CHANGELOG.md

+3,939
Large diffs are not rendered by default.

tools/eslint/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ These folks keep the project moving and are resources for help.
112112
* Toru Nagashima ([@mysticatea](https://github.com/mysticatea))
113113
* Alberto Rodríguez ([@alberto](https://github.com/alberto))
114114
* Kai Cataldo ([@kaicataldo](https://github.com/kaicataldo))
115+
* Teddy Katz ([@not-an-aardvark](https://github.com/not-an-aardvark))
115116

116117
### Development Team
117118

@@ -129,7 +130,7 @@ These folks keep the project moving and are resources for help.
129130
* Kevin Partington ([@platinumazure](https://github.com/platinumazure))
130131
* Vitor Balocco ([@vitorbal](https://github.com/vitorbal))
131132
* James Henry ([@JamesHenry](https://github.com/JamesHenry))
132-
* Teddy Katz ([@not-an-aardvark](https://github.com/not-an-aardvark))
133+
* Reyad Attiyat ([@soda0289](https://github.com/soda0289))
133134

134135
## Releases
135136

tools/eslint/conf/eslint.json tools/eslint/conf/eslint-recommended.js

+90-71
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,81 @@
1-
{
2-
"parser": "espree",
3-
"ecmaFeatures": {},
4-
"rules": {
1+
/**
2+
* @fileoverview Configuration applied when a user configuration extends from
3+
* eslint:recommended.
4+
* @author Nicholas C. Zakas
5+
*/
6+
7+
"use strict";
8+
9+
/* eslint sort-keys: ["error", "asc"], quote-props: ["error", "consistent"] */
10+
/* eslint-disable sort-keys */
11+
12+
module.exports = {
13+
parser: "espree",
14+
ecmaFeatures: {},
15+
16+
rules: {
17+
18+
/* eslint-enable sort-keys */
19+
"accessor-pairs": "off",
20+
"array-bracket-spacing": "off",
21+
"array-callback-return": "off",
22+
"arrow-body-style": "off",
23+
"arrow-parens": "off",
24+
"arrow-spacing": "off",
25+
"block-scoped-var": "off",
26+
"block-spacing": "off",
27+
"brace-style": "off",
28+
"callback-return": "off",
29+
"camelcase": "off",
30+
"capitalized-comments": "off",
31+
"class-methods-use-this": "off",
32+
"comma-dangle": "off",
33+
"comma-spacing": "off",
34+
"comma-style": "off",
35+
"complexity": "off",
36+
"computed-property-spacing": "off",
37+
"consistent-return": "off",
38+
"consistent-this": "off",
39+
"constructor-super": "error",
40+
"curly": "off",
41+
"default-case": "off",
42+
"dot-location": "off",
43+
"dot-notation": "off",
44+
"eol-last": "off",
45+
"eqeqeq": "off",
46+
"func-call-spacing": "off",
47+
"func-name-matching": "off",
48+
"func-names": "off",
49+
"func-style": "off",
50+
"generator-star-spacing": "off",
51+
"global-require": "off",
52+
"guard-for-in": "off",
53+
"handle-callback-err": "off",
54+
"id-blacklist": "off",
55+
"id-length": "off",
56+
"id-match": "off",
57+
"indent": "off",
58+
"init-declarations": "off",
59+
"jsx-quotes": "off",
60+
"key-spacing": "off",
61+
"keyword-spacing": "off",
62+
"line-comment-position": "off",
63+
"linebreak-style": "off",
64+
"lines-around-comment": "off",
65+
"lines-around-directive": "off",
66+
"max-depth": "off",
67+
"max-len": "off",
68+
"max-lines": "off",
69+
"max-nested-callbacks": "off",
70+
"max-params": "off",
71+
"max-statements": "off",
72+
"max-statements-per-line": "off",
73+
"multiline-ternary": "off",
74+
"new-cap": "off",
75+
"new-parens": "off",
76+
"newline-after-var": "off",
77+
"newline-before-return": "off",
78+
"newline-per-chained-call": "off",
579
"no-alert": "off",
680
"no-array-constructor": "off",
781
"no-await-in-loop": "off",
@@ -10,6 +84,7 @@
1084
"no-case-declarations": "error",
1185
"no-catch-shadow": "off",
1286
"no-class-assign": "error",
87+
"no-compare-neg-zero": "off",
1388
"no-cond-assign": "error",
1489
"no-confusing-arrow": "off",
1590
"no-console": "error",
@@ -61,6 +136,7 @@
61136
"no-mixed-operators": "off",
62137
"no-mixed-requires": "off",
63138
"no-mixed-spaces-and-tabs": "error",
139+
"no-multi-assign": "off",
64140
"no-multi-spaces": "off",
65141
"no-multi-str": "off",
66142
"no-multiple-empty-lines": "off",
@@ -99,20 +175,20 @@
99175
"no-sequences": "off",
100176
"no-shadow": "off",
101177
"no-shadow-restricted-names": "off",
102-
"no-whitespace-before-property": "off",
103178
"no-spaced-func": "off",
104179
"no-sparse-arrays": "error",
105180
"no-sync": "off",
106181
"no-tabs": "off",
182+
"no-template-curly-in-string": "off",
107183
"no-ternary": "off",
108-
"no-trailing-spaces": "off",
109184
"no-this-before-super": "error",
110185
"no-throw-literal": "off",
186+
"no-trailing-spaces": "off",
111187
"no-undef": "error",
112188
"no-undef-init": "off",
113189
"no-undefined": "off",
114-
"no-unexpected-multiline": "error",
115190
"no-underscore-dangle": "off",
191+
"no-unexpected-multiline": "error",
116192
"no-unmodified-loop-condition": "off",
117193
"no-unneeded-ternary": "off",
118194
"no-unreachable": "error",
@@ -129,70 +205,12 @@
129205
"no-useless-escape": "off",
130206
"no-useless-rename": "off",
131207
"no-useless-return": "off",
132-
"no-void": "off",
133208
"no-var": "off",
209+
"no-void": "off",
134210
"no-warning-comments": "off",
211+
"no-whitespace-before-property": "off",
135212
"no-with": "off",
136-
"array-bracket-spacing": "off",
137-
"array-callback-return": "off",
138-
"arrow-body-style": "off",
139-
"arrow-parens": "off",
140-
"arrow-spacing": "off",
141-
"accessor-pairs": "off",
142-
"block-scoped-var": "off",
143-
"block-spacing": "off",
144-
"brace-style": "off",
145-
"callback-return": "off",
146-
"camelcase": "off",
147-
"capitalized-comments": "off",
148-
"class-methods-use-this": "off",
149-
"comma-dangle": "off",
150-
"comma-spacing": "off",
151-
"comma-style": "off",
152-
"complexity": "off",
153-
"computed-property-spacing": "off",
154-
"consistent-return": "off",
155-
"consistent-this": "off",
156-
"constructor-super": "error",
157-
"curly": "off",
158-
"default-case": "off",
159-
"dot-location": "off",
160-
"dot-notation": "off",
161-
"eol-last": "off",
162-
"eqeqeq": "off",
163-
"func-call-spacing": "off",
164-
"func-names": "off",
165-
"func-name-matching": "off",
166-
"func-style": "off",
167-
"generator-star-spacing": "off",
168-
"global-require": "off",
169-
"guard-for-in": "off",
170-
"handle-callback-err": "off",
171-
"id-blacklist": "off",
172-
"id-length": "off",
173-
"id-match": "off",
174-
"indent": "off",
175-
"init-declarations": "off",
176-
"jsx-quotes": "off",
177-
"key-spacing": "off",
178-
"keyword-spacing": "off",
179-
"linebreak-style": "off",
180-
"line-comment-position": "off",
181-
"lines-around-comment": "off",
182-
"lines-around-directive": "off",
183-
"max-depth": "off",
184-
"max-len": "off",
185-
"max-lines": "off",
186-
"max-nested-callbacks": "off",
187-
"max-params": "off",
188-
"max-statements": "off",
189-
"max-statements-per-line": "off",
190-
"multiline-ternary": "off",
191-
"new-cap": "off",
192-
"new-parens": "off",
193-
"newline-after-var": "off",
194-
"newline-before-return": "off",
195-
"newline-per-chained-call": "off",
213+
"nonblock-statement-body-position": "off",
196214
"object-curly-newline": "off",
197215
"object-curly-spacing": ["off", "never"],
198216
"object-property-newline": "off",
@@ -206,6 +224,7 @@
206224
"prefer-const": "off",
207225
"prefer-destructuring": "off",
208226
"prefer-numeric-literals": "off",
227+
"prefer-promise-reject-errors": "off",
209228
"prefer-reflect": "off",
210229
"prefer-rest-params": "off",
211230
"prefer-spread": "off",
@@ -219,8 +238,8 @@
219238
"rest-spread-spacing": "off",
220239
"semi": "off",
221240
"semi-spacing": "off",
222-
"sort-keys": "off",
223241
"sort-imports": "off",
242+
"sort-keys": "off",
224243
"sort-vars": "off",
225244
"space-before-blocks": "off",
226245
"space-before-function-paren": "off",
@@ -231,15 +250,15 @@
231250
"strict": "off",
232251
"symbol-description": "off",
233252
"template-curly-spacing": "off",
253+
"template-tag-spacing": "off",
234254
"unicode-bom": "off",
235255
"use-isnan": "error",
236256
"valid-jsdoc": "off",
237257
"valid-typeof": "error",
238258
"vars-on-top": "off",
239259
"wrap-iife": "off",
240260
"wrap-regex": "off",
241-
"no-template-curly-in-string": "off",
242261
"yield-star-spacing": "off",
243262
"yoda": "off"
244263
}
245-
}
264+
};

0 commit comments

Comments
 (0)