@pob/eslint-config 48.0.3 → 48.1.1

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,47 @@
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.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.0...v48.1.1) (2022-02-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * support latest ecma version in mjs files ([873404e](https://github.com/christophehurpeau/eslint-config-pob/commit/873404ee659c50b10937b25329fc695fdbd436f9))
12
+
13
+
14
+
15
+
16
+
17
+ # [48.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.7...v48.1.0) (2022-01-30)
18
+
19
+ **Note:** Version bump only for package @pob/eslint-config
20
+
21
+
22
+
23
+
24
+
25
+ ## [48.0.5](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.4...v48.0.5) (2021-12-12)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * add ignorePatterns in root configs ([a70086d](https://github.com/christophehurpeau/eslint-config-pob/commit/a70086db27321aea807a3a07a5a3a0f40b3aa1cd))
31
+
32
+
33
+
34
+
35
+
36
+ ## [48.0.4](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.3...v48.0.4) (2021-12-11)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * sourceType script ([e10cfb2](https://github.com/christophehurpeau/eslint-config-pob/commit/e10cfb26541eee59858730ec0e25bd58b9ccdfa1))
42
+
43
+
44
+
45
+
46
+
6
47
  ## [48.0.3](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.2...v48.0.3) (2021-12-11)
7
48
 
8
49
 
@@ -24,6 +24,10 @@ module.exports = {
24
24
  {
25
25
  files: ['*.mjs'],
26
26
  extends: ['plugin:node/recommended-module'],
27
+ parserOptions: {
28
+ sourceType: 'module',
29
+ ecmaVersion: 2022,
30
+ },
27
31
  rules: {
28
32
  ...overrideRules,
29
33
  'unicorn/prefer-module': 'error',
@@ -40,7 +40,7 @@ module.exports = {
40
40
  files: ['*.cjs'],
41
41
  extends: ['plugin:node/recommended-script'],
42
42
  parserOptions: {
43
- sourceType: 'strict',
43
+ sourceType: 'script',
44
44
  ecmaVersion: 2022,
45
45
  },
46
46
  rules: {
@@ -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.3",
3
+ "version": "48.1.1",
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": "022e613acadf7fd6488a0bc81c5b7f8b6fb469ba"
69
+ "gitHead": "ebf37e9b58c518b5b73d75417352c20b8a8360a7"
70
70
  }