@pob/eslint-config 48.0.2 → 48.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 CHANGED
@@ -3,6 +3,48 @@
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.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.7...v48.1.0) (2022-01-30)
7
+
8
+ **Note:** Version bump only for package @pob/eslint-config
9
+
10
+
11
+
12
+
13
+
14
+ ## [48.0.5](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.4...v48.0.5) (2021-12-12)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add ignorePatterns in root configs ([a70086d](https://github.com/christophehurpeau/eslint-config-pob/commit/a70086db27321aea807a3a07a5a3a0f40b3aa1cd))
20
+
21
+
22
+
23
+
24
+
25
+ ## [48.0.4](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.3...v48.0.4) (2021-12-11)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * sourceType script ([e10cfb2](https://github.com/christophehurpeau/eslint-config-pob/commit/e10cfb26541eee59858730ec0e25bd58b9ccdfa1))
31
+
32
+
33
+
34
+
35
+
36
+ ## [48.0.3](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.2...v48.0.3) (2021-12-11)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * make sure cjs files are treated as commonjs ([de37d3d](https://github.com/christophehurpeau/eslint-config-pob/commit/de37d3dbbb4e3b1edbe75541f380b4d99e051385))
42
+ * use ecmaVersion 2022 for node ([6fd0f78](https://github.com/christophehurpeau/eslint-config-pob/commit/6fd0f7847e208d7a66cbf98a99858572dd8f1ac7))
43
+
44
+
45
+
46
+
47
+
6
48
  ## [48.0.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.1...v48.0.2) (2021-12-11)
7
49
 
8
50
 
@@ -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 2021
13
+ // top level await is introduced in 2022
14
14
  // current ecmaVersion in eslint-plugin-node is 2019
15
- ecmaVersion: 2021,
15
+ ecmaVersion: 2022,
16
16
  },
17
17
 
18
18
  rules: {
@@ -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 2021
12
+ // top level await is introduced in 2022
13
13
  // current ecmaVersion in eslint-plugin-node is 2019
14
- ecmaVersion: 2021,
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: 'script',
44
+ ecmaVersion: 2022,
45
+ },
42
46
  rules: {
47
+ strict: ['error', 'safe'],
43
48
  ...overrideRules,
44
49
  'unicorn/prefer-module': 'off',
45
50
  },
@@ -296,6 +296,18 @@ module.exports = {
296
296
 
297
297
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
298
298
  'unicorn/no-await-expression-member': 'error',
299
+
300
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
301
+ 'unicorn/no-thenable': 'off',
302
+
303
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
304
+ 'unicorn/no-useless-promise-resolve-reject': 'error',
305
+
306
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
307
+ 'unicorn/relative-url-style': ['error', 'always'],
308
+
309
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
310
+ 'unicorn/prefer-json-parse-buffer': 'error',
299
311
  },
300
312
 
301
313
  overrides: [
@@ -2,4 +2,5 @@
2
2
 
3
3
  module.exports = {
4
4
  extends: ['./node-commonjs', './rules/dev-only'].map(require.resolve),
5
+ ignorePatterns: ['**/node_modules/**'],
5
6
  };
@@ -2,4 +2,5 @@
2
2
 
3
3
  module.exports = {
4
4
  extends: ['./node-module', './rules/dev-only'].map(require.resolve),
5
+ ignorePatterns: ['**/node_modules/**'],
5
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "48.0.2",
3
+ "version": "48.1.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -45,7 +45,7 @@
45
45
  "eslint": "^8.4.1",
46
46
  "eslint-plugin-import": "^2.25.3",
47
47
  "eslint-plugin-node": "^11.1.0",
48
- "eslint-plugin-unicorn": "^39.0.0"
48
+ "eslint-plugin-unicorn": "^40.1.0"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "eslint-plugin-import": {
@@ -64,7 +64,7 @@
64
64
  "eslint-config-prettier": "^8.3.0",
65
65
  "eslint-plugin-import": "^2.25.3",
66
66
  "eslint-plugin-node": "^11.1.0",
67
- "eslint-plugin-unicorn": "^39.0.0"
67
+ "eslint-plugin-unicorn": "^40.1.0"
68
68
  },
69
- "gitHead": "a8c622c8d2b140fc62e29841bac30aab9df5df2a"
69
+ "gitHead": "1b704f55be4491342efbd97a3aa34ec13394ca83"
70
70
  }