eslint 7.4.0 → 7.5.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 +28 -0
- package/README.md +3 -1
- package/lib/linter/code-path-analysis/code-path-analyzer.js +38 -0
- package/lib/linter/code-path-analysis/code-path-segment.js +0 -1
- package/lib/linter/code-path-analysis/code-path-state.js +59 -0
- package/lib/linter/code-path-analysis/debug-helpers.js +26 -19
- package/lib/rules/accessor-pairs.js +1 -14
- package/lib/rules/array-callback-return.js +5 -7
- package/lib/rules/arrow-body-style.js +41 -6
- package/lib/rules/consistent-return.js +1 -12
- package/lib/rules/constructor-super.js +1 -0
- package/lib/rules/dot-location.js +20 -14
- package/lib/rules/dot-notation.js +36 -33
- package/lib/rules/func-call-spacing.js +42 -6
- package/lib/rules/func-name-matching.js +1 -4
- package/lib/rules/global-require.js +2 -1
- package/lib/rules/id-blacklist.js +233 -0
- package/lib/rules/indent.js +19 -0
- package/lib/rules/index.js +1 -3
- package/lib/rules/keyword-spacing.js +2 -2
- package/lib/rules/max-len.js +13 -2
- package/lib/rules/new-cap.js +10 -14
- package/lib/rules/newline-per-chained-call.js +15 -5
- package/lib/rules/no-alert.js +10 -3
- package/lib/rules/no-eval.js +8 -38
- package/lib/rules/no-extend-native.js +37 -40
- package/lib/rules/no-extra-bind.js +57 -17
- package/lib/rules/no-extra-boolean-cast.js +7 -0
- package/lib/rules/no-extra-parens.js +27 -7
- package/lib/rules/no-implicit-coercion.js +11 -6
- package/lib/rules/no-implied-eval.js +7 -28
- package/lib/rules/no-import-assign.js +33 -32
- package/lib/rules/no-irregular-whitespace.js +22 -12
- package/lib/rules/no-magic-numbers.js +4 -8
- package/lib/rules/no-obj-calls.js +7 -4
- package/lib/rules/no-prototype-builtins.js +13 -3
- package/lib/rules/no-self-assign.js +3 -53
- package/lib/rules/no-setter-return.js +5 -8
- package/lib/rules/no-unexpected-multiline.js +2 -2
- package/lib/rules/no-unneeded-ternary.js +0 -2
- package/lib/rules/no-unused-expressions.js +55 -23
- package/lib/rules/no-useless-call.js +10 -7
- package/lib/rules/no-whitespace-before-property.js +16 -4
- package/lib/rules/object-curly-newline.js +4 -4
- package/lib/rules/operator-assignment.js +3 -42
- package/lib/rules/padding-line-between-statements.js +2 -2
- package/lib/rules/prefer-arrow-callback.js +90 -25
- package/lib/rules/prefer-exponentiation-operator.js +1 -1
- package/lib/rules/prefer-numeric-literals.js +4 -13
- package/lib/rules/prefer-promise-reject-errors.js +1 -3
- package/lib/rules/prefer-regex-literals.js +2 -5
- package/lib/rules/prefer-spread.js +2 -6
- package/lib/rules/radix.js +5 -2
- package/lib/rules/sort-imports.js +28 -0
- package/lib/rules/use-isnan.js +1 -1
- package/lib/rules/utils/ast-utils.js +317 -153
- package/lib/rules/wrap-iife.js +9 -2
- package/lib/rules/yoda.js +2 -55
- package/package.json +6 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.5.0",
|
4
4
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
5
5
|
"description": "An AST-based pattern checker for JavaScript.",
|
6
6
|
"bin": {
|
@@ -54,9 +54,9 @@
|
|
54
54
|
"doctrine": "^3.0.0",
|
55
55
|
"enquirer": "^2.3.5",
|
56
56
|
"eslint-scope": "^5.1.0",
|
57
|
-
"eslint-utils": "^2.
|
58
|
-
"eslint-visitor-keys": "^1.
|
59
|
-
"espree": "^7.
|
57
|
+
"eslint-utils": "^2.1.0",
|
58
|
+
"eslint-visitor-keys": "^1.3.0",
|
59
|
+
"espree": "^7.2.0",
|
60
60
|
"esquery": "^1.2.0",
|
61
61
|
"esutils": "^2.0.2",
|
62
62
|
"file-entry-cache": "^5.0.1",
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"js-yaml": "^3.13.1",
|
71
71
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
72
72
|
"levn": "^0.4.1",
|
73
|
-
"lodash": "^4.17.
|
73
|
+
"lodash": "^4.17.19",
|
74
74
|
"minimatch": "^3.0.4",
|
75
75
|
"natural-compare": "^1.4.0",
|
76
76
|
"optionator": "^0.9.1",
|
@@ -122,7 +122,7 @@
|
|
122
122
|
"npm-license": "^0.3.3",
|
123
123
|
"nyc": "^15.0.1",
|
124
124
|
"proxyquire": "^2.0.1",
|
125
|
-
"puppeteer": "^
|
125
|
+
"puppeteer": "^4.0.0",
|
126
126
|
"recast": "^0.19.0",
|
127
127
|
"regenerator-runtime": "^0.13.2",
|
128
128
|
"shelljs": "^0.8.2",
|