eslint 3.13.1 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/README.md +1 -1
- package/conf/{eslint.json → eslint-recommended.js} +88 -71
- package/lib/ast-utils.js +247 -28
- package/lib/cli.js +2 -2
- package/lib/code-path-analysis/code-path-state.js +2 -2
- package/lib/config/autoconfig.js +24 -20
- package/lib/config/config-file.js +31 -24
- package/lib/config/config-initializer.js +2 -2
- package/lib/config/config-rule.js +15 -16
- package/lib/config/config-validator.js +6 -6
- package/lib/config.js +3 -2
- package/lib/eslint.js +18 -18
- package/lib/formatters/checkstyle.js +2 -2
- package/lib/formatters/codeframe.js +1 -1
- package/lib/formatters/compact.js +2 -2
- package/lib/formatters/junit.js +2 -2
- package/lib/formatters/tap.js +2 -2
- package/lib/formatters/unix.js +2 -2
- package/lib/formatters/visualstudio.js +2 -2
- package/lib/internal-rules/internal-consistent-docs-description.js +1 -1
- package/lib/rule-context.js +2 -2
- package/lib/rules/arrow-body-style.js +7 -4
- package/lib/rules/arrow-spacing.js +7 -6
- package/lib/rules/block-spacing.js +2 -2
- package/lib/rules/brace-style.js +93 -202
- package/lib/rules/capitalized-comments.js +6 -6
- package/lib/rules/comma-dangle.js +6 -6
- package/lib/rules/comma-spacing.js +16 -16
- package/lib/rules/comma-style.js +1 -1
- package/lib/rules/consistent-return.js +1 -1
- package/lib/rules/constructor-super.js +3 -3
- package/lib/rules/curly.js +11 -7
- package/lib/rules/default-case.js +3 -3
- package/lib/rules/eqeqeq.js +15 -6
- package/lib/rules/func-call-spacing.js +12 -15
- package/lib/rules/func-name-matching.js +1 -1
- package/lib/rules/generator-star-spacing.js +18 -19
- package/lib/rules/global-require.js +2 -2
- package/lib/rules/id-blacklist.js +2 -2
- package/lib/rules/id-length.js +3 -3
- package/lib/rules/id-match.js +2 -2
- package/lib/rules/indent.js +21 -20
- package/lib/rules/key-spacing.js +20 -23
- package/lib/rules/keyword-spacing.js +2 -13
- package/lib/rules/line-comment-position.js +1 -1
- package/lib/rules/linebreak-style.js +7 -1
- package/lib/rules/lines-around-comment.js +4 -4
- package/lib/rules/lines-around-directive.js +4 -4
- package/lib/rules/max-lines.js +3 -3
- package/lib/rules/max-statements-per-line.js +8 -7
- package/lib/rules/new-cap.js +2 -2
- package/lib/rules/newline-after-var.js +7 -2
- package/lib/rules/newline-before-return.js +2 -2
- package/lib/rules/newline-per-chained-call.js +3 -1
- package/lib/rules/no-await-in-loop.js +5 -5
- package/lib/rules/no-cond-assign.js +3 -3
- package/lib/rules/no-dupe-keys.js +1 -1
- package/lib/rules/no-else-return.js +88 -25
- package/lib/rules/no-extend-native.js +3 -3
- package/lib/rules/no-extra-bind.js +3 -4
- package/lib/rules/no-extra-boolean-cast.js +22 -1
- package/lib/rules/no-extra-parens.js +57 -9
- package/lib/rules/no-inner-declarations.js +4 -4
- package/lib/rules/no-irregular-whitespace.js +7 -1
- package/lib/rules/no-lone-blocks.js +10 -10
- package/lib/rules/no-mixed-operators.js +1 -7
- package/lib/rules/no-mixed-requires.js +4 -4
- package/lib/rules/no-multi-assign.js +41 -0
- package/lib/rules/no-multi-spaces.js +4 -1
- package/lib/rules/no-multi-str.js +7 -3
- package/lib/rules/no-redeclare.js +7 -7
- package/lib/rules/no-return-assign.js +7 -14
- package/lib/rules/no-return-await.js +2 -2
- package/lib/rules/no-sequences.js +7 -6
- package/lib/rules/no-throw-literal.js +2 -39
- package/lib/rules/no-trailing-spaces.js +8 -2
- package/lib/rules/no-undefined.js +45 -6
- package/lib/rules/no-unexpected-multiline.js +9 -8
- package/lib/rules/no-unneeded-ternary.js +5 -1
- package/lib/rules/no-unused-labels.js +17 -2
- package/lib/rules/no-unused-vars.js +34 -19
- package/lib/rules/no-use-before-define.js +33 -29
- package/lib/rules/no-useless-computed-key.js +9 -4
- package/lib/rules/no-useless-concat.js +10 -7
- package/lib/rules/no-useless-escape.js +1 -1
- package/lib/rules/no-useless-return.js +5 -11
- package/lib/rules/no-var.js +69 -3
- package/lib/rules/no-whitespace-before-property.js +5 -16
- package/lib/rules/object-curly-newline.js +2 -2
- package/lib/rules/object-curly-spacing.js +7 -25
- package/lib/rules/object-property-newline.js +3 -3
- package/lib/rules/object-shorthand.js +10 -10
- package/lib/rules/operator-assignment.js +2 -2
- package/lib/rules/operator-linebreak.js +8 -10
- package/lib/rules/padded-blocks.js +4 -4
- package/lib/rules/prefer-promise-reject-errors.js +124 -0
- package/lib/rules/prefer-spread.js +1 -1
- package/lib/rules/prefer-template.js +1 -1
- package/lib/rules/quotes.js +11 -7
- package/lib/rules/require-await.js +1 -1
- package/lib/rules/semi-spacing.js +4 -0
- package/lib/rules/sort-imports.js +4 -4
- package/lib/rules/sort-keys.js +2 -2
- package/lib/rules/sort-vars.js +2 -2
- package/lib/rules/space-before-function-paren.js +9 -6
- package/lib/rules/space-in-parens.js +8 -8
- package/lib/rules/spaced-comment.js +10 -10
- package/lib/rules/strict.js +2 -2
- package/lib/rules/template-tag-spacing.js +77 -0
- package/lib/rules/unicode-bom.js +1 -1
- package/lib/rules/wrap-iife.js +5 -5
- package/lib/rules/yoda.js +2 -7
- package/lib/rules.js +2 -2
- package/lib/testers/rule-tester.js +28 -21
- package/lib/token-store/backward-token-comment-cursor.js +57 -0
- package/lib/token-store/backward-token-cursor.js +56 -0
- package/lib/token-store/cursor.js +76 -0
- package/lib/token-store/cursors.js +92 -0
- package/lib/token-store/decorative-cursor.js +39 -0
- package/lib/token-store/filter-cursor.js +43 -0
- package/lib/token-store/forward-token-comment-cursor.js +57 -0
- package/lib/token-store/forward-token-cursor.js +61 -0
- package/lib/token-store/index.js +604 -0
- package/lib/token-store/limit-cursor.js +40 -0
- package/lib/token-store/padded-token-cursor.js +38 -0
- package/lib/token-store/skip-cursor.js +42 -0
- package/lib/token-store/utils.js +100 -0
- package/lib/util/comment-event-generator.js +17 -16
- package/lib/util/glob-util.js +1 -1
- package/lib/util/glob.js +1 -1
- package/lib/util/rule-fixer.js +3 -8
- package/lib/util/source-code-fixer.js +41 -45
- package/lib/util/source-code.js +35 -19
- package/messages/extend-config-missing.txt +3 -0
- package/package.json +3 -3
- package/lib/token-store.js +0 -203
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,84 @@
|
|
1
|
+
v3.16.0 - February 20, 2017
|
2
|
+
|
3
|
+
* d89d0b4 Update: fix quotes false negative for string literals as template tags (#8107) (Teddy Katz)
|
4
|
+
* 21be366 Chore: Ensuring eslint:recommended rules are sorted. (#8106) (Kevin Partington)
|
5
|
+
* 360dbe4 Update: Improve error message when extend config missing (fixes #6115) (#8100) (alberto)
|
6
|
+
* f62a724 Chore: use updated token iterator methods (#8103) (Kai Cataldo)
|
7
|
+
* daf6f26 Fix: check output in RuleTester when errors is a number (fixes #7640) (#8097) (alberto)
|
8
|
+
* cfb65c5 Update: make no-lone-blocks report blocks in switch cases (fixes #8047) (#8062) (Teddy Katz)
|
9
|
+
* 290fb1f Update: Add includeComments to getTokenByRangeStart (fixes #8068) (#8069) (Kai Cataldo)
|
10
|
+
* ff066dc Chore: Incorrect source code test text (#8096) (Jack Ford)
|
11
|
+
* 14d146d Docs: Clarify --ext only works with directories (fixes #7939) (#8095) (alberto)
|
12
|
+
* 013a454 Docs: Add TSC meeting quorum requirement (#8086) (Kevin Partington)
|
13
|
+
* 7516303 Fix: `sourceCode.getTokenAfter` shouldn't skip tokens after comments (#8055) (Toru Nagashima)
|
14
|
+
* c53e034 Fix: unicode-bom fixer insert BOM in appropriate location (fixes #8083) (#8084) (pantosha)
|
15
|
+
* 55ac302 Chore: fix the timing to define rules for tests (#8082) (Toru Nagashima)
|
16
|
+
* c7e64f3 Upgrade: mock-fs (#8070) (Toru Nagashima)
|
17
|
+
* acc3301 Update: handle uncommon linebreaks consistently in rules (fixes #7949) (#8049) (Teddy Katz)
|
18
|
+
* 591b74a Chore: enable operator-linebreak on ESLint codebase (#8064) (Teddy Katz)
|
19
|
+
* 6445d2a Docs: Add documentation for /* exported */ (fixes #7998) (#8065) (Lee Yi Min)
|
20
|
+
* fcc38db Chore: simplify and improve performance for autofix (#8035) (Toru Nagashima)
|
21
|
+
* b04fde7 Chore: improve performance of SourceCode constructor (#8054) (Teddy Katz)
|
22
|
+
* 90fd555 Update: improve null detection in eqeqeq for ES6 regexes (fixes #8020) (#8042) (Teddy Katz)
|
23
|
+
* 16248e2 Fix: no-extra-boolean-cast incorrect Boolean() autofixing (fixes #7977) (#8037) (Jonathan Wilsson)
|
24
|
+
* 834f45d Update: rewrite TokenStore (fixes #7810) (#7936) (Toru Nagashima)
|
25
|
+
* 329dcdc Chore: unify checks for statement list parents (#8048) (Teddy Katz)
|
26
|
+
* c596690 Docs: Clarify generator-star-spacing config example (fixes #8027) (#8034) (Hòa Trần)
|
27
|
+
* a11d4a6 Docs: fix a typo in shareable configs documentation (#8036) (Dan Homola)
|
28
|
+
* 1e3d4c6 Update: add fixer for no-unused-labels (#7841) (Teddy Katz)
|
29
|
+
* f47fb98 Update: ensure semi-spacing checks import/export declarations (#8033) (Teddy Katz)
|
30
|
+
* e228d56 Update: no-undefined handles properties/classes/modules (fixes #7964) (#7966) (Kevin Partington)
|
31
|
+
* 7bc92d9 Chore: fix invalid test cases (#8030) (Toru Nagashima)
|
32
|
+
|
33
|
+
v3.15.0 - February 3, 2017
|
34
|
+
|
35
|
+
* f2a3580 Fix: `no-extra-parens` incorrect precedence (fixes #7978) (#7999) (alberto)
|
36
|
+
* d6b6ba1 Fix: no-var should fix ForStatement.init (#7993) (Toru Nagashima)
|
37
|
+
* 99d386d Upgrade: Espree v3.4.0 (#8019) (Kai Cataldo)
|
38
|
+
* 42390fd Docs: update README.md for team (#8016) (Toru Nagashima)
|
39
|
+
* d7ffd88 Chore: enable template-tag-spacing on ESLint codebase (#8005) (Teddy Katz)
|
40
|
+
* f2be7e3 Docs: Fix typo in object-curly-newline.md (#8002) (Danny Andrews)
|
41
|
+
* df2351a Docs: Fix misleading section in brace-style documentation (#7996) (Teddy Katz)
|
42
|
+
* 5ae6e00 Chore: avoid unnecessary feature detection for Symbol (#7992) (Teddy Katz)
|
43
|
+
* 5d57c57 Chore: fix no-else-return lint error (refs #7986) (#7994) (Vitor Balocco)
|
44
|
+
* 62fb054 Chore: enable no-else-return on ESLint codebase (#7986) (Teddy Katz)
|
45
|
+
* c59a0ba Update: add ignoreRestSiblings option to no-unused-vars (#7968) (Zack Argyle)
|
46
|
+
* 5cdfa99 Chore: enable no-unneeded-ternary on ESLint codebase (#7987) (Teddy Katz)
|
47
|
+
* fbd7c13 Update: ensure operator-assignment handles exponentiation operators (#7970) (Teddy Katz)
|
48
|
+
* c5066ce Update: add "variables" option to no-use-before-define (fixes #7111) (#7948) (Teddy Katz)
|
49
|
+
* 09546a4 New: `template-tag-spacing` rule (fixes #7631) (#7913) (Jonathan Wilsson)
|
50
|
+
|
51
|
+
v3.14.1 - January 25, 2017
|
52
|
+
|
53
|
+
* 791f32b Fix: brace-style false positive for keyword method names (fixes #7974) (#7980) (Teddy Katz)
|
54
|
+
* d7a0add Docs: Add ESLint tutorial embed to getting started (#7971) (Jamis Charles)
|
55
|
+
* 72d41f0 Fix: no-var autofix syntax error in single-line statements (fixes #7961) (#7962) (Teddy Katz)
|
56
|
+
* b9e5b68 Fix: indent rule crash on sparse array with object (fixes #7959) (#7960) (Gyandeep Singh)
|
57
|
+
* a7bd66a Chore: Adding assign/redeclare tests to no-undefined (refs #7964) (#7965) (Kevin Partington)
|
58
|
+
* 8bcbf5d Docs: typo in prefer-promise-reject-errors (#7958) (Patrick McElhaney)
|
59
|
+
|
60
|
+
v3.14.0 - January 20, 2017
|
61
|
+
|
62
|
+
* 506324a Fix: `no-var` does not fix if causes ReferenceError (fixes #7950) (#7953) (Toru Nagashima)
|
63
|
+
* 05e7432 New: no-chained-assignments rule (fixes #6424) (#7904) (Stewart Rand)
|
64
|
+
* 243e47d Update: Add fixer for no-else-return (fixes #7863) (#7864) (Xander Dumaine)
|
65
|
+
* f091d95 New: `prefer-promise-reject-errors` rule (fixes #7685) (#7689) (Teddy Katz)
|
66
|
+
* ca01e00 Fix: recognize all line terminators in func-call-spacing (fixes #7923) (#7924) (Francesco Trotta)
|
67
|
+
* a664e8a Update: add ignoreJSX option to no-extra-parens (Fixes #7444) (#7926) (Robert Rossmann)
|
68
|
+
* 8ac3518 Fix: no-useless-computed-key false positive with `__proto__` (#7934) (Teddy Katz)
|
69
|
+
* c835e19 Docs: remove reference to deleted rule (#7942) (Alejandro Oviedo)
|
70
|
+
* 3c1e63b Docs: Improve examples for no-case-declarations (fixes #6716) (#7920) (Kevin Rangel)
|
71
|
+
* 7e04b33 Fix: Ignore inline plugin rule config in autoconfig (fixes #7860) (#7919) (Ian VanSchooten)
|
72
|
+
* 6448ba0 Fix: add parentheses in no-extra-boolean-cast autofixer (fixes #7912) (#7914) (Szymon Przybylski)
|
73
|
+
* b3f2094 Fix: brace-style crash with lone block statements (fixes #7908) (#7909) (Teddy Katz)
|
74
|
+
* 5eb2e88 Docs: Correct typos in configuring.md (#7916) (Gabriel Delépine)
|
75
|
+
* bd5e219 Update: ensure brace-style validates class bodies (fixes #7608) (#7871) (Teddy Katz)
|
76
|
+
* 427543a Fix: catastrophic backtracking in astUtils linebreak regex (fixes #7893) (#7898) (Teddy Katz)
|
77
|
+
* 995554c Fix: Correct typos in no-alert.md and lib/ast-utils.js (#7905) (Stewart Rand)
|
78
|
+
* d6150e3 Chore: Enable comma-dangle on ESLint codebase (fixes #7725) (#7906) (Teddy Katz)
|
79
|
+
* 075ec25 Chore: update to use ES6 classes (refs #7849) (#7891) (Claire Dranginis)
|
80
|
+
* 55f0cb6 Update: refactor brace-style and fix inconsistencies (fixes #7869) (#7870) (Teddy Katz)
|
81
|
+
|
1
82
|
v3.13.1 - January 9, 2017
|
2
83
|
|
3
84
|
* 3fc4e3f Fix: prefer-destructuring reporting compound assignments (fixes #7881) (#7882) (Teddy Katz)
|
package/README.md
CHANGED
@@ -112,6 +112,7 @@ These folks keep the project moving and are resources for help.
|
|
112
112
|
* Toru Nagashima ([@mysticatea](https://github.com/mysticatea))
|
113
113
|
* Alberto Rodríguez ([@alberto](https://github.com/alberto))
|
114
114
|
* Kai Cataldo ([@kaicataldo](https://github.com/kaicataldo))
|
115
|
+
* Teddy Katz ([@not-an-aardvark](https://github.com/not-an-aardvark))
|
115
116
|
|
116
117
|
### Development Team
|
117
118
|
|
@@ -129,7 +130,6 @@ These folks keep the project moving and are resources for help.
|
|
129
130
|
* Kevin Partington ([@platinumazure](https://github.com/platinumazure))
|
130
131
|
* Vitor Balocco ([@vitorbal](https://github.com/vitorbal))
|
131
132
|
* James Henry ([@JamesHenry](https://github.com/JamesHenry))
|
132
|
-
* Teddy Katz ([@not-an-aardvark](https://github.com/not-an-aardvark))
|
133
133
|
|
134
134
|
## Releases
|
135
135
|
|
@@ -1,7 +1,81 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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",
|
5
79
|
"no-alert": "off",
|
6
80
|
"no-array-constructor": "off",
|
7
81
|
"no-await-in-loop": "off",
|
@@ -61,6 +135,7 @@
|
|
61
135
|
"no-mixed-operators": "off",
|
62
136
|
"no-mixed-requires": "off",
|
63
137
|
"no-mixed-spaces-and-tabs": "error",
|
138
|
+
"no-multi-assign": "off",
|
64
139
|
"no-multi-spaces": "off",
|
65
140
|
"no-multi-str": "off",
|
66
141
|
"no-multiple-empty-lines": "off",
|
@@ -99,20 +174,20 @@
|
|
99
174
|
"no-sequences": "off",
|
100
175
|
"no-shadow": "off",
|
101
176
|
"no-shadow-restricted-names": "off",
|
102
|
-
"no-whitespace-before-property": "off",
|
103
177
|
"no-spaced-func": "off",
|
104
178
|
"no-sparse-arrays": "error",
|
105
179
|
"no-sync": "off",
|
106
180
|
"no-tabs": "off",
|
181
|
+
"no-template-curly-in-string": "off",
|
107
182
|
"no-ternary": "off",
|
108
|
-
"no-trailing-spaces": "off",
|
109
183
|
"no-this-before-super": "error",
|
110
184
|
"no-throw-literal": "off",
|
185
|
+
"no-trailing-spaces": "off",
|
111
186
|
"no-undef": "error",
|
112
187
|
"no-undef-init": "off",
|
113
188
|
"no-undefined": "off",
|
114
|
-
"no-unexpected-multiline": "error",
|
115
189
|
"no-underscore-dangle": "off",
|
190
|
+
"no-unexpected-multiline": "error",
|
116
191
|
"no-unmodified-loop-condition": "off",
|
117
192
|
"no-unneeded-ternary": "off",
|
118
193
|
"no-unreachable": "error",
|
@@ -129,70 +204,11 @@
|
|
129
204
|
"no-useless-escape": "off",
|
130
205
|
"no-useless-rename": "off",
|
131
206
|
"no-useless-return": "off",
|
132
|
-
"no-void": "off",
|
133
207
|
"no-var": "off",
|
208
|
+
"no-void": "off",
|
134
209
|
"no-warning-comments": "off",
|
210
|
+
"no-whitespace-before-property": "off",
|
135
211
|
"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",
|
196
212
|
"object-curly-newline": "off",
|
197
213
|
"object-curly-spacing": ["off", "never"],
|
198
214
|
"object-property-newline": "off",
|
@@ -206,6 +222,7 @@
|
|
206
222
|
"prefer-const": "off",
|
207
223
|
"prefer-destructuring": "off",
|
208
224
|
"prefer-numeric-literals": "off",
|
225
|
+
"prefer-promise-reject-errors": "off",
|
209
226
|
"prefer-reflect": "off",
|
210
227
|
"prefer-rest-params": "off",
|
211
228
|
"prefer-spread": "off",
|
@@ -219,8 +236,8 @@
|
|
219
236
|
"rest-spread-spacing": "off",
|
220
237
|
"semi": "off",
|
221
238
|
"semi-spacing": "off",
|
222
|
-
"sort-keys": "off",
|
223
239
|
"sort-imports": "off",
|
240
|
+
"sort-keys": "off",
|
224
241
|
"sort-vars": "off",
|
225
242
|
"space-before-blocks": "off",
|
226
243
|
"space-before-function-paren": "off",
|
@@ -231,6 +248,7 @@
|
|
231
248
|
"strict": "off",
|
232
249
|
"symbol-description": "off",
|
233
250
|
"template-curly-spacing": "off",
|
251
|
+
"template-tag-spacing": "off",
|
234
252
|
"unicode-bom": "off",
|
235
253
|
"use-isnan": "error",
|
236
254
|
"valid-jsdoc": "off",
|
@@ -238,8 +256,7 @@
|
|
238
256
|
"vars-on-top": "off",
|
239
257
|
"wrap-iife": "off",
|
240
258
|
"wrap-regex": "off",
|
241
|
-
"no-template-curly-in-string": "off",
|
242
259
|
"yield-star-spacing": "off",
|
243
260
|
"yoda": "off"
|
244
261
|
}
|
245
|
-
}
|
262
|
+
};
|