eslint 7.0.0 → 7.3.1

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +14 -10
  3. package/lib/cli-engine/cli-engine.js +2 -2
  4. package/lib/cli-engine/config-array-factory.js +34 -2
  5. package/lib/init/config-initializer.js +92 -74
  6. package/lib/linter/code-path-analysis/code-path-analyzer.js +2 -2
  7. package/lib/linter/code-path-analysis/code-path-state.js +34 -12
  8. package/lib/linter/config-comment-parser.js +1 -1
  9. package/lib/linter/linter.js +2 -1
  10. package/lib/rule-tester/rule-tester.js +9 -0
  11. package/lib/rules/accessor-pairs.js +1 -1
  12. package/lib/rules/arrow-parens.js +19 -3
  13. package/lib/rules/block-spacing.js +19 -2
  14. package/lib/rules/callback-return.js +1 -1
  15. package/lib/rules/comma-dangle.js +2 -1
  16. package/lib/rules/curly.js +8 -1
  17. package/lib/rules/func-call-spacing.js +18 -3
  18. package/lib/rules/global-require.js +1 -1
  19. package/lib/rules/handle-callback-err.js +1 -1
  20. package/lib/rules/id-match.js +2 -1
  21. package/lib/rules/index.js +3 -0
  22. package/lib/rules/key-spacing.js +6 -2
  23. package/lib/rules/keyword-spacing.js +9 -2
  24. package/lib/rules/linebreak-style.js +8 -2
  25. package/lib/rules/max-lines-per-function.js +1 -1
  26. package/lib/rules/max-lines.js +34 -8
  27. package/lib/rules/multiline-ternary.js +44 -25
  28. package/lib/rules/no-buffer-constructor.js +1 -1
  29. package/lib/rules/no-control-regex.js +1 -1
  30. package/lib/rules/no-extra-boolean-cast.js +3 -0
  31. package/lib/rules/no-extra-parens.js +30 -2
  32. package/lib/rules/no-invalid-regexp.js +1 -1
  33. package/lib/rules/no-loss-of-precision.js +198 -0
  34. package/lib/rules/no-misleading-character-class.js +1 -1
  35. package/lib/rules/no-mixed-operators.js +3 -2
  36. package/lib/rules/no-mixed-requires.js +1 -1
  37. package/lib/rules/no-mixed-spaces-and-tabs.js +14 -6
  38. package/lib/rules/no-new-func.js +22 -19
  39. package/lib/rules/no-new-require.js +1 -1
  40. package/lib/rules/no-new-symbol.js +2 -1
  41. package/lib/rules/no-path-concat.js +1 -1
  42. package/lib/rules/no-process-env.js +1 -1
  43. package/lib/rules/no-process-exit.js +1 -1
  44. package/lib/rules/no-promise-executor-return.js +121 -0
  45. package/lib/rules/no-regex-spaces.js +1 -1
  46. package/lib/rules/no-restricted-exports.js +6 -0
  47. package/lib/rules/no-restricted-modules.js +1 -1
  48. package/lib/rules/no-sync.js +1 -1
  49. package/lib/rules/no-unneeded-ternary.js +6 -4
  50. package/lib/rules/no-unreachable-loop.js +150 -0
  51. package/lib/rules/no-unused-expressions.js +1 -1
  52. package/lib/rules/no-unused-vars.js +5 -2
  53. package/lib/rules/no-useless-backreference.js +1 -1
  54. package/lib/rules/object-property-newline.js +1 -1
  55. package/lib/rules/one-var-declaration-per-line.js +1 -1
  56. package/lib/rules/operator-linebreak.js +2 -5
  57. package/lib/rules/padded-blocks.js +19 -5
  58. package/lib/rules/prefer-named-capture-group.js +1 -1
  59. package/lib/rules/quote-props.js +2 -2
  60. package/lib/rules/rest-spread-spacing.js +3 -6
  61. package/lib/rules/semi-spacing.js +33 -8
  62. package/lib/rules/template-tag-spacing.js +8 -2
  63. package/lib/rules/utils/ast-utils.js +106 -9
  64. package/lib/source-code/source-code.js +1 -0
  65. package/messages/extend-config-missing.txt +1 -1
  66. package/messages/no-config-found.txt +1 -1
  67. package/messages/plugin-conflict.txt +1 -1
  68. package/messages/plugin-missing.txt +1 -1
  69. package/messages/whitespace-found.txt +1 -1
  70. package/package.json +6 -6
@@ -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://gitter.im/eslint/eslint to chat with the team.
11
+ If you still can't figure out the problem, please stop by https://eslint.org/chat 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://gitter.im/eslint/eslint to chat with the team.
3
+ If you still can't figure out the problem, please stop by https://eslint.org/chat to chat with the team.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "7.0.0",
3
+ "version": "7.3.1",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {
@@ -52,10 +52,11 @@
52
52
  "cross-spawn": "^7.0.2",
53
53
  "debug": "^4.0.1",
54
54
  "doctrine": "^3.0.0",
55
- "eslint-scope": "^5.0.0",
55
+ "enquirer": "^2.3.5",
56
+ "eslint-scope": "^5.1.0",
56
57
  "eslint-utils": "^2.0.0",
57
- "eslint-visitor-keys": "^1.1.0",
58
- "espree": "^7.0.0",
58
+ "eslint-visitor-keys": "^1.2.0",
59
+ "espree": "^7.1.0",
59
60
  "esquery": "^1.2.0",
60
61
  "esutils": "^2.0.2",
61
62
  "file-entry-cache": "^5.0.1",
@@ -65,7 +66,6 @@
65
66
  "ignore": "^4.0.6",
66
67
  "import-fresh": "^3.0.0",
67
68
  "imurmurhash": "^0.1.4",
68
- "inquirer": "^7.0.0",
69
69
  "is-glob": "^4.0.0",
70
70
  "js-yaml": "^3.13.1",
71
71
  "json-stable-stringify-without-jsonify": "^1.0.1",
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@babel/core": "^7.4.3",
88
88
  "@babel/preset-env": "^7.4.3",
89
- "acorn": "^7.1.1",
89
+ "acorn": "^7.2.0",
90
90
  "babel-loader": "^8.0.5",
91
91
  "chai": "^4.0.1",
92
92
  "cheerio": "^0.22.0",