@pob/eslint-config 48.0.2 → 48.0.3
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 +12 -0
- package/lib/node/commonjs.js +2 -2
- package/lib/node/module.js +7 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [48.0.3](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.2...v48.0.3) (2021-12-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* make sure cjs files are treated as commonjs ([de37d3d](https://github.com/christophehurpeau/eslint-config-pob/commit/de37d3dbbb4e3b1edbe75541f380b4d99e051385))
|
|
12
|
+
* use ecmaVersion 2022 for node ([6fd0f78](https://github.com/christophehurpeau/eslint-config-pob/commit/6fd0f7847e208d7a66cbf98a99858572dd8f1ac7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [48.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.1...v48.0.2) (2021-12-11)
|
|
7
19
|
|
|
8
20
|
|
package/lib/node/commonjs.js
CHANGED
|
@@ -10,9 +10,9 @@ module.exports = {
|
|
|
10
10
|
parserOptions: {
|
|
11
11
|
// https://node.green/#ES2020
|
|
12
12
|
// most 2020 features are supported in node 14
|
|
13
|
-
// top level await is introduced in
|
|
13
|
+
// top level await is introduced in 2022
|
|
14
14
|
// current ecmaVersion in eslint-plugin-node is 2019
|
|
15
|
-
ecmaVersion:
|
|
15
|
+
ecmaVersion: 2022,
|
|
16
16
|
},
|
|
17
17
|
|
|
18
18
|
rules: {
|
package/lib/node/module.js
CHANGED
|
@@ -9,9 +9,9 @@ module.exports = {
|
|
|
9
9
|
sourceType: 'module',
|
|
10
10
|
// https://node.green/#ES2020
|
|
11
11
|
// most 2020 features are supported in node 14
|
|
12
|
-
// top level await is introduced in
|
|
12
|
+
// top level await is introduced in 2022
|
|
13
13
|
// current ecmaVersion in eslint-plugin-node is 2019
|
|
14
|
-
ecmaVersion:
|
|
14
|
+
ecmaVersion: 2022,
|
|
15
15
|
},
|
|
16
16
|
env,
|
|
17
17
|
rules: {
|
|
@@ -39,7 +39,12 @@ module.exports = {
|
|
|
39
39
|
{
|
|
40
40
|
files: ['*.cjs'],
|
|
41
41
|
extends: ['plugin:node/recommended-script'],
|
|
42
|
+
parserOptions: {
|
|
43
|
+
sourceType: 'strict',
|
|
44
|
+
ecmaVersion: 2022,
|
|
45
|
+
},
|
|
42
46
|
rules: {
|
|
47
|
+
strict: ['error', 'safe'],
|
|
43
48
|
...overrideRules,
|
|
44
49
|
'unicorn/prefer-module': 'off',
|
|
45
50
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "48.0.
|
|
3
|
+
"version": "48.0.3",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"eslint-plugin-node": "^11.1.0",
|
|
67
67
|
"eslint-plugin-unicorn": "^39.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "022e613acadf7fd6488a0bc81c5b7f8b6fb469ba"
|
|
70
70
|
}
|