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.
- package/CHANGELOG.md +90 -0
- package/README.md +4 -13
- package/bin/eslint.js +4 -1
- package/conf/config-schema.js +1 -0
- package/conf/environments.js +72 -15
- package/lib/cli-engine/cascading-config-array-factory.js +15 -3
- package/lib/cli-engine/cli-engine.js +13 -3
- package/lib/cli-engine/config-array/config-array.js +8 -2
- package/lib/cli-engine/config-array/extracted-config.js +16 -1
- package/lib/cli-engine/config-array-factory.js +9 -6
- package/lib/cli-engine/file-enumerator.js +5 -13
- package/lib/init/config-initializer.js +19 -9
- package/lib/init/npm-utils.js +2 -2
- package/lib/linter/code-path-analysis/code-path-analyzer.js +1 -0
- package/lib/linter/linter.js +49 -16
- package/lib/rule-tester/rule-tester.js +15 -3
- package/lib/rules/accessor-pairs.js +195 -35
- package/lib/rules/arrow-body-style.js +2 -2
- package/lib/rules/class-methods-use-this.js +10 -3
- package/lib/rules/dot-location.js +21 -17
- package/lib/rules/dot-notation.js +6 -2
- package/lib/rules/func-call-spacing.js +30 -20
- package/lib/rules/func-names.js +4 -0
- package/lib/rules/function-call-argument-newline.js +120 -0
- package/lib/rules/function-paren-newline.js +34 -22
- package/lib/rules/indent.js +13 -2
- package/lib/rules/index.js +1 -0
- package/lib/rules/max-len.js +7 -0
- package/lib/rules/multiline-comment-style.js +2 -1
- package/lib/rules/new-cap.js +2 -1
- package/lib/rules/no-dupe-keys.js +1 -1
- package/lib/rules/no-duplicate-case.js +10 -8
- package/lib/rules/no-else-return.js +127 -0
- package/lib/rules/no-extra-bind.js +1 -0
- package/lib/rules/no-extra-boolean-cast.js +44 -5
- package/lib/rules/no-extra-parens.js +295 -39
- package/lib/rules/no-mixed-operators.js +48 -13
- package/lib/rules/no-param-reassign.js +12 -1
- package/lib/rules/no-restricted-syntax.js +2 -2
- package/lib/rules/no-unused-vars.js +1 -1
- package/lib/rules/no-var.js +14 -1
- package/lib/rules/prefer-const.js +9 -3
- package/lib/rules/prefer-template.js +1 -10
- package/lib/rules/require-atomic-updates.js +63 -84
- package/lib/rules/sort-keys.js +11 -3
- package/lib/rules/utils/ast-utils.js +45 -3
- package/lib/rules/yoda.js +1 -1
- package/lib/{cli-engine → shared}/naming.js +0 -0
- package/lib/shared/types.js +2 -0
- package/messages/extend-config-missing.txt +2 -0
- package/messages/print-config-with-directory-path.txt +2 -0
- package/package.json +27 -30
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "6.
|
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": "^
|
55
|
-
"eslint-utils": "^1.
|
56
|
-
"eslint-visitor-keys": "^1.
|
57
|
-
"espree": "^6.
|
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": "^
|
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.
|
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.
|
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": "^
|
80
|
-
"strip-ansi": "^
|
81
|
-
"strip-json-comments": "^
|
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": "^
|
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
|
-
"
|
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.
|
118
|
-
"markdownlint-cli": "^0.
|
119
|
-
"metro-memory-fs": "^0.
|
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": "^
|
119
|
+
"nyc": "^14.1.1",
|
123
120
|
"proxyquire": "^2.0.1",
|
124
|
-
"puppeteer": "^1.
|
125
|
-
"recast": "^0.
|
121
|
+
"puppeteer": "^1.18.0",
|
122
|
+
"recast": "^0.18.1",
|
123
|
+
"regenerator-runtime": "^0.13.2",
|
126
124
|
"shelljs": "^0.8.2",
|
127
|
-
"sinon": "^
|
125
|
+
"sinon": "^7.3.2",
|
128
126
|
"temp": "^0.9.0",
|
129
|
-
"
|
130
|
-
"webpack": "^
|
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": [
|