@pob/eslint-config 45.1.0 → 47.1.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 +30 -0
- package/lib/node/commonjs.js +8 -0
- package/lib/node/module.js +4 -0
- package/lib/plugins/unicorn.js +17 -1
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [47.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v47.0.1...v47.1.0) (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-config:** use ecmaVersion 2020 for node ([fef96a1](https://github.com/christophehurpeau/eslint-config-pob/commit/fef96a15a243059e6c553283239c93cbbc35614a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [47.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v46.0.0...v47.0.0) (2021-11-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* missing export in @pob/eslint-config ([aa76510](https://github.com/christophehurpeau/eslint-config-pob/commit/aa7651048102462c6dff72eb183d3ff2317aa06f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [46.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v45.1.0...v46.0.0) (2021-11-14)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @pob/eslint-config
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [45.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v45.0.3...v45.1.0) (2021-09-05)
|
|
7
37
|
|
|
8
38
|
|
package/lib/node/commonjs.js
CHANGED
|
@@ -6,6 +6,14 @@ module.exports = {
|
|
|
6
6
|
plugins: ['node'],
|
|
7
7
|
extends: ['plugin:node/recommended-script'],
|
|
8
8
|
env,
|
|
9
|
+
|
|
10
|
+
parserOptions: {
|
|
11
|
+
// https://node.green/#ES2020
|
|
12
|
+
// most 2020 features are supported in node 14
|
|
13
|
+
// current ecmaVersion in eslint-plugin-node is 2019
|
|
14
|
+
ecmaVersion: 2020,
|
|
15
|
+
},
|
|
16
|
+
|
|
9
17
|
rules: {
|
|
10
18
|
...overrideRules,
|
|
11
19
|
'unicorn/prefer-module': 'off',
|
package/lib/node/module.js
CHANGED
|
@@ -7,6 +7,10 @@ module.exports = {
|
|
|
7
7
|
extends: ['plugin:node/recommended-module'],
|
|
8
8
|
parserOptions: {
|
|
9
9
|
sourceType: 'module',
|
|
10
|
+
// https://node.green/#ES2020
|
|
11
|
+
// most 2020 features are supported in node 14
|
|
12
|
+
// current ecmaVersion in eslint-plugin-node is 2019
|
|
13
|
+
ecmaVersion: 2020,
|
|
10
14
|
},
|
|
11
15
|
env,
|
|
12
16
|
rules: {
|
package/lib/plugins/unicorn.js
CHANGED
|
@@ -60,7 +60,7 @@ module.exports = {
|
|
|
60
60
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/new-for-builtins.md
|
|
61
61
|
'unicorn/new-for-builtins': 'error',
|
|
62
62
|
|
|
63
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/regex
|
|
63
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/better-regex.md
|
|
64
64
|
'unicorn/better-regex': 'error',
|
|
65
65
|
|
|
66
66
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-spread.md
|
|
@@ -274,6 +274,22 @@ module.exports = {
|
|
|
274
274
|
|
|
275
275
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-spread.md
|
|
276
276
|
'unicorn/no-useless-spread': 'error',
|
|
277
|
+
|
|
278
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-fallback-in-spread.md
|
|
279
|
+
'unicorn/no-useless-fallback-in-spread': 'error',
|
|
280
|
+
|
|
281
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-invalid-remove-event-listener.md
|
|
282
|
+
'unicorn/no-invalid-remove-event-listener': 'error',
|
|
283
|
+
|
|
284
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/template-indent.md
|
|
285
|
+
// prettier does that
|
|
286
|
+
'unicorn/template-indent': 'off',
|
|
287
|
+
|
|
288
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-empty-file.md
|
|
289
|
+
'unicorn/no-empty-file': 'off',
|
|
290
|
+
|
|
291
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-export-from.md
|
|
292
|
+
'unicorn/prefer-export-from': 'error',
|
|
277
293
|
},
|
|
278
294
|
|
|
279
295
|
overrides: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "47.1.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"./root-module": "./lib/root-module.js",
|
|
28
28
|
"./prettier": "./lib/plugins/prettier.js",
|
|
29
29
|
"./rules/expert": "./lib/rules/expert.js",
|
|
30
|
+
"./lib/rules/style": "./lib/rules/style.js",
|
|
30
31
|
"./package.json": "./package.json"
|
|
31
32
|
},
|
|
32
33
|
"sideEffects": false,
|
|
33
34
|
"scripts": {
|
|
34
35
|
"lint": "yarn run lint:eslint",
|
|
35
|
-
"lint:eslint": "
|
|
36
|
+
"lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet @pob/eslint-config"
|
|
36
37
|
},
|
|
37
38
|
"prettier": {
|
|
38
39
|
"trailingComma": "all",
|
|
@@ -41,10 +42,10 @@
|
|
|
41
42
|
},
|
|
42
43
|
"pob": {},
|
|
43
44
|
"peerDependencies": {
|
|
44
|
-
"eslint": "^7.
|
|
45
|
+
"eslint": "^7.32.0",
|
|
45
46
|
"eslint-plugin-import": "^2.22.1",
|
|
46
47
|
"eslint-plugin-node": "^11.1.0",
|
|
47
|
-
"eslint-plugin-unicorn": "^
|
|
48
|
+
"eslint-plugin-unicorn": "^38.0.1"
|
|
48
49
|
},
|
|
49
50
|
"peerDependenciesMeta": {
|
|
50
51
|
"eslint-plugin-import": {
|
|
@@ -58,15 +59,12 @@
|
|
|
58
59
|
}
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@pob/use-eslint-plugin": "^
|
|
62
|
+
"@pob/use-eslint-plugin": "^47.0.0",
|
|
62
63
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
63
64
|
"eslint-config-prettier": "^8.0.0",
|
|
64
65
|
"eslint-plugin-import": "^2.22.1",
|
|
65
66
|
"eslint-plugin-node": "^11.1.0",
|
|
66
|
-
"eslint-plugin-unicorn": "^
|
|
67
|
+
"eslint-plugin-unicorn": "^38.0.1"
|
|
67
68
|
},
|
|
68
|
-
"
|
|
69
|
-
"eslint": "7.32.0"
|
|
70
|
-
},
|
|
71
|
-
"gitHead": "fd4bd1927be338e3142b825047f708285063284b"
|
|
69
|
+
"gitHead": "c1d92717bb016fb773eb8f8bdab07b2732014279"
|
|
72
70
|
}
|