eslint 8.12.0 → 8.15.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/README.md +17 -12
- package/lib/cli-engine/cli-engine.js +2 -1
- package/lib/cli-engine/formatters/html.js +3 -3
- package/lib/eslint/eslint.js +4 -19
- package/lib/linter/apply-disable-directives.js +1 -1
- package/lib/rules/index.js +1 -0
- package/lib/rules/no-constant-binary-expression.js +500 -0
- package/lib/rules/no-constant-condition.js +4 -197
- package/lib/rules/no-eval.js +17 -16
- package/lib/rules/no-underscore-dangle.js +30 -1
- package/lib/rules/operator-assignment.js +7 -5
- package/lib/rules/utils/ast-utils.js +203 -7
- package/lib/shared/types.js +24 -0
- package/messages/all-files-ignored.js +1 -1
- package/messages/extend-config-missing.js +1 -1
- package/messages/failed-to-read-json.js +1 -1
- package/messages/file-not-found.js +1 -1
- package/messages/no-config-found.js +1 -1
- package/messages/plugin-invalid.js +1 -1
- package/messages/plugin-missing.js +1 -1
- package/messages/print-config-with-directory-path.js +1 -1
- package/messages/whitespace-found.js +1 -1
- package/package.json +5 -5
@@ -11,5 +11,5 @@ ESLint couldn't find a configuration file. To set up a configuration file for th
|
|
11
11
|
ESLint looked for configuration files in ${directoryPath} and its ancestors. If it found none, it then looked in your home directory.
|
12
12
|
|
13
13
|
If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://eslint.org/chat/help
|
14
|
-
`.
|
14
|
+
`.trimStart();
|
15
15
|
};
|
@@ -15,5 +15,5 @@ It's likely that the plugin isn't installed correctly. Try reinstalling by runni
|
|
15
15
|
The plugin "${pluginName}" was referenced from the config file in "${importerName}".
|
16
16
|
|
17
17
|
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
18
|
-
`.
|
18
|
+
`.trimStart();
|
19
19
|
};
|
@@ -7,5 +7,5 @@ module.exports = function(it) {
|
|
7
7
|
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.
|
8
8
|
|
9
9
|
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
|
10
|
-
`.
|
10
|
+
`.trimStart();
|
11
11
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.15.0",
|
4
4
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
5
5
|
"description": "An AST-based pattern checker for JavaScript.",
|
6
6
|
"bin": {
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"lint-staged": {
|
34
34
|
"*.js": "eslint --fix",
|
35
|
-
"*.md": "markdownlint"
|
35
|
+
"*.md": "markdownlint --fix"
|
36
36
|
},
|
37
37
|
"files": [
|
38
38
|
"LICENSE",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"homepage": "https://eslint.org",
|
48
48
|
"bugs": "https://github.com/eslint/eslint/issues/",
|
49
49
|
"dependencies": {
|
50
|
-
"@eslint/eslintrc": "^1.2.
|
50
|
+
"@eslint/eslintrc": "^1.2.3",
|
51
51
|
"@humanwhocodes/config-array": "^0.9.2",
|
52
52
|
"ajv": "^6.10.0",
|
53
53
|
"chalk": "^4.0.0",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"eslint-scope": "^7.1.1",
|
59
59
|
"eslint-utils": "^3.0.0",
|
60
60
|
"eslint-visitor-keys": "^3.3.0",
|
61
|
-
"espree": "^9.3.
|
61
|
+
"espree": "^9.3.2",
|
62
62
|
"esquery": "^1.4.0",
|
63
63
|
"esutils": "^2.0.2",
|
64
64
|
"fast-deep-equal": "^3.1.3",
|
@@ -74,7 +74,7 @@
|
|
74
74
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
75
75
|
"levn": "^0.4.1",
|
76
76
|
"lodash.merge": "^4.6.2",
|
77
|
-
"minimatch": "^3.
|
77
|
+
"minimatch": "^3.1.2",
|
78
78
|
"natural-compare": "^1.4.0",
|
79
79
|
"optionator": "^0.9.1",
|
80
80
|
"regexpp": "^3.2.0",
|