eslint 6.0.0-rc.0 → 6.2.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +4 -13
  3. package/bin/eslint.js +4 -1
  4. package/conf/config-schema.js +1 -0
  5. package/conf/environments.js +72 -15
  6. package/lib/cli-engine/cascading-config-array-factory.js +15 -3
  7. package/lib/cli-engine/cli-engine.js +13 -3
  8. package/lib/cli-engine/config-array/config-array.js +8 -2
  9. package/lib/cli-engine/config-array/extracted-config.js +16 -1
  10. package/lib/cli-engine/config-array-factory.js +9 -6
  11. package/lib/cli-engine/file-enumerator.js +5 -13
  12. package/lib/init/config-initializer.js +19 -9
  13. package/lib/init/npm-utils.js +2 -2
  14. package/lib/linter/code-path-analysis/code-path-analyzer.js +1 -0
  15. package/lib/linter/linter.js +49 -16
  16. package/lib/rule-tester/rule-tester.js +15 -3
  17. package/lib/rules/accessor-pairs.js +195 -35
  18. package/lib/rules/arrow-body-style.js +2 -2
  19. package/lib/rules/class-methods-use-this.js +10 -3
  20. package/lib/rules/dot-location.js +21 -17
  21. package/lib/rules/dot-notation.js +6 -2
  22. package/lib/rules/func-call-spacing.js +30 -20
  23. package/lib/rules/func-names.js +4 -0
  24. package/lib/rules/function-call-argument-newline.js +120 -0
  25. package/lib/rules/function-paren-newline.js +34 -22
  26. package/lib/rules/indent.js +13 -2
  27. package/lib/rules/index.js +1 -0
  28. package/lib/rules/max-len.js +7 -0
  29. package/lib/rules/multiline-comment-style.js +2 -1
  30. package/lib/rules/new-cap.js +2 -1
  31. package/lib/rules/no-dupe-keys.js +1 -1
  32. package/lib/rules/no-duplicate-case.js +10 -8
  33. package/lib/rules/no-else-return.js +127 -0
  34. package/lib/rules/no-extra-bind.js +1 -0
  35. package/lib/rules/no-extra-boolean-cast.js +44 -5
  36. package/lib/rules/no-extra-parens.js +295 -39
  37. package/lib/rules/no-mixed-operators.js +48 -13
  38. package/lib/rules/no-param-reassign.js +12 -1
  39. package/lib/rules/no-restricted-syntax.js +2 -2
  40. package/lib/rules/no-unused-vars.js +1 -1
  41. package/lib/rules/no-var.js +14 -1
  42. package/lib/rules/prefer-const.js +9 -3
  43. package/lib/rules/prefer-template.js +1 -10
  44. package/lib/rules/require-atomic-updates.js +63 -84
  45. package/lib/rules/sort-keys.js +11 -3
  46. package/lib/rules/utils/ast-utils.js +45 -3
  47. package/lib/rules/yoda.js +1 -1
  48. package/lib/{cli-engine → shared}/naming.js +0 -0
  49. package/lib/shared/types.js +2 -0
  50. package/messages/extend-config-missing.txt +2 -0
  51. package/messages/print-config-with-directory-path.txt +2 -0
  52. package/package.json +27 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "6.0.0-rc.0",
3
+ "version": "6.2.0",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {
@@ -19,9 +19,7 @@
19
19
  "docs": "node Makefile.js docs",
20
20
  "gensite": "node Makefile.js gensite",
21
21
  "webpack": "node Makefile.js webpack",
22
- "perf": "node Makefile.js perf",
23
- "profile": "beefy tests/bench/bench.js --open -- -t brfs -t ./tests/bench/xform-rules.js -r espree",
24
- "coveralls": "cat ./coverage/lcov.info | coveralls"
22
+ "perf": "node Makefile.js perf"
25
23
  },
26
24
  "gitHooks": {
27
25
  "pre-commit": "lint-staged"
@@ -51,49 +49,47 @@
51
49
  "cross-spawn": "^6.0.5",
52
50
  "debug": "^4.0.1",
53
51
  "doctrine": "^3.0.0",
54
- "eslint-scope": "^4.0.3",
55
- "eslint-utils": "^1.3.1",
56
- "eslint-visitor-keys": "^1.0.0",
57
- "espree": "^6.0.0-alpha.0",
52
+ "eslint-scope": "^5.0.0",
53
+ "eslint-utils": "^1.4.0",
54
+ "eslint-visitor-keys": "^1.1.0",
55
+ "espree": "^6.1.0",
58
56
  "esquery": "^1.0.1",
59
57
  "esutils": "^2.0.2",
60
58
  "file-entry-cache": "^5.0.1",
61
59
  "functional-red-black-tree": "^1.0.1",
62
- "glob-parent": "^3.1.0",
60
+ "glob-parent": "^5.0.0",
63
61
  "globals": "^11.7.0",
64
62
  "ignore": "^4.0.6",
65
63
  "import-fresh": "^3.0.0",
66
64
  "imurmurhash": "^0.1.4",
67
- "inquirer": "^6.2.2",
65
+ "inquirer": "^6.4.1",
68
66
  "is-glob": "^4.0.0",
69
67
  "js-yaml": "^3.13.1",
70
68
  "json-stable-stringify-without-jsonify": "^1.0.1",
71
69
  "levn": "^0.3.0",
72
- "lodash": "^4.17.11",
70
+ "lodash": "^4.17.14",
73
71
  "minimatch": "^3.0.4",
74
72
  "mkdirp": "^0.5.1",
75
73
  "natural-compare": "^1.4.0",
76
74
  "optionator": "^0.8.2",
77
75
  "progress": "^2.0.0",
78
76
  "regexpp": "^2.0.1",
79
- "semver": "^5.5.1",
80
- "strip-ansi": "^4.0.0",
81
- "strip-json-comments": "^2.0.1",
77
+ "semver": "^6.1.2",
78
+ "strip-ansi": "^5.2.0",
79
+ "strip-json-comments": "^3.0.1",
82
80
  "table": "^5.2.3",
83
- "text-table": "^0.2.0"
81
+ "text-table": "^0.2.0",
82
+ "v8-compile-cache": "^2.0.3"
84
83
  },
85
84
  "devDependencies": {
86
85
  "@babel/core": "^7.4.3",
87
- "@babel/polyfill": "^7.4.3",
88
86
  "@babel/preset-env": "^7.4.3",
89
- "acorn": "^6.1.1",
87
+ "acorn": "^7.0.0",
90
88
  "babel-loader": "^8.0.5",
91
- "beefy": "^2.1.8",
92
- "brfs": "^2.0.2",
93
89
  "chai": "^4.0.1",
94
90
  "cheerio": "^0.22.0",
95
91
  "common-tags": "^1.8.0",
96
- "coveralls": "^3.0.3",
92
+ "core-js": "^3.1.3",
97
93
  "dateformat": "^3.0.3",
98
94
  "ejs": "^2.6.1",
99
95
  "eslint": "file:.",
@@ -114,21 +110,22 @@
114
110
  "leche": "^2.2.3",
115
111
  "lint-staged": "^8.1.5",
116
112
  "load-perf": "^0.2.0",
117
- "markdownlint": "^0.13.0",
118
- "markdownlint-cli": "^0.15.0",
119
- "metro-memory-fs": "^0.53.1",
113
+ "markdownlint": "^0.15.0",
114
+ "markdownlint-cli": "^0.17.0",
115
+ "metro-memory-fs": "^0.54.1",
120
116
  "mocha": "^6.1.2",
117
+ "mocha-junit-reporter": "^1.23.0",
121
118
  "npm-license": "^0.3.3",
122
- "nyc": "^13.3.0",
119
+ "nyc": "^14.1.1",
123
120
  "proxyquire": "^2.0.1",
124
- "puppeteer": "^1.14.0",
125
- "recast": "^0.17.6",
121
+ "puppeteer": "^1.18.0",
122
+ "recast": "^0.18.1",
123
+ "regenerator-runtime": "^0.13.2",
126
124
  "shelljs": "^0.8.2",
127
- "sinon": "^3.3.0",
125
+ "sinon": "^7.3.2",
128
126
  "temp": "^0.9.0",
129
- "through": "^2.3.8",
130
- "webpack": "^4.29.6",
131
- "webpack-cli": "^3.3.0",
127
+ "webpack": "^4.35.0",
128
+ "webpack-cli": "^3.3.5",
132
129
  "yorkie": "^2.0.0"
133
130
  },
134
131
  "keywords": [