eslint 8.11.0 → 8.14.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/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 +23 -18
- package/lib/rules/no-invalid-this.js +3 -3
- package/lib/rules/operator-assignment.js +7 -5
- package/lib/rules/padding-line-between-statements.js +2 -4
- 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 +3 -3
@@ -12,5 +12,5 @@ If you do want to lint these files, try the following solutions:
|
|
12
12
|
|
13
13
|
* Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored.
|
14
14
|
* Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument.
|
15
|
-
`.
|
15
|
+
`.trimStart();
|
16
16
|
};
|
@@ -9,5 +9,5 @@ ESLint couldn't find the config "${configName}" to extend from. Please check tha
|
|
9
9
|
The config "${configName}" was referenced from the config file in "${importerName}".
|
10
10
|
|
11
11
|
If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
|
12
|
-
`.
|
12
|
+
`.trimStart();
|
13
13
|
};
|
@@ -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.14.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.2",
|
51
51
|
"@humanwhocodes/config-array": "^0.9.2",
|
52
52
|
"ajv": "^6.10.0",
|
53
53
|
"chalk": "^4.0.0",
|