eslint 7.3.1 → 7.7.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 +80 -0
- package/README.md +28 -16
- package/lib/cli-engine/config-array-factory.js +1 -33
- package/lib/cli-engine/formatters/checkstyle.js +2 -2
- 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/rule-tester/rule-tester.js +10 -0
- package/lib/rules/accessor-pairs.js +1 -14
- package/lib/rules/array-callback-return.js +26 -17
- package/lib/rules/arrow-body-style.js +43 -8
- package/lib/rules/arrow-parens.js +91 -108
- package/lib/rules/camelcase.js +47 -0
- package/lib/rules/comma-dangle.js +1 -2
- 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 +14 -11
- package/lib/rules/id-denylist.js +230 -0
- package/lib/rules/indent.js +23 -3
- package/lib/rules/index.js +1 -0
- 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-duplicate-case.js +23 -4
- 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 +48 -10
- 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-underscore-dangle.js +66 -21
- 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 +68 -13
- 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/messages/extend-config-missing.txt +1 -1
- package/messages/no-config-found.txt +1 -1
- package/messages/plugin-conflict.txt +1 -1
- package/messages/plugin-missing.txt +1 -1
- package/messages/whitespace-found.txt +1 -1
- package/package.json +6 -7
@@ -4,4 +4,4 @@ ESLint couldn't determine the plugin "<%- pluginId %>" uniquely.
|
|
4
4
|
|
5
5
|
Please remove the "plugins" setting from either config or remove either plugin installation.
|
6
6
|
|
7
|
-
If you still can't figure out the problem, please stop by https://eslint.org/chat to chat with the team.
|
7
|
+
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
@@ -8,4 +8,4 @@ It's likely that the plugin isn't installed correctly. Try reinstalling by runni
|
|
8
8
|
|
9
9
|
The plugin "<%- pluginName %>" was referenced from the config file in "<%- importerName %>".
|
10
10
|
|
11
|
-
If you still can't figure out the problem, please stop by https://eslint.org/chat to chat with the team.
|
11
|
+
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
ESLint couldn't find the plugin "<%- pluginName %>". because there is whitespace in the name. Please check your configuration and remove all whitespace from the plugin name.
|
2
2
|
|
3
|
-
If you still can't figure out the problem, please stop by https://eslint.org/chat to chat with the team.
|
3
|
+
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.7.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",
|
@@ -111,7 +111,6 @@
|
|
111
111
|
"karma-mocha": "^1.3.0",
|
112
112
|
"karma-mocha-reporter": "^2.2.3",
|
113
113
|
"karma-webpack": "^4.0.0-rc.6",
|
114
|
-
"leche": "^2.2.3",
|
115
114
|
"lint-staged": "^10.1.2",
|
116
115
|
"load-perf": "^0.2.0",
|
117
116
|
"markdownlint": "^0.19.0",
|
@@ -122,7 +121,7 @@
|
|
122
121
|
"npm-license": "^0.3.3",
|
123
122
|
"nyc": "^15.0.1",
|
124
123
|
"proxyquire": "^2.0.1",
|
125
|
-
"puppeteer": "^
|
124
|
+
"puppeteer": "^4.0.0",
|
126
125
|
"recast": "^0.19.0",
|
127
126
|
"regenerator-runtime": "^0.13.2",
|
128
127
|
"shelljs": "^0.8.2",
|