@pob/eslint-config 50.0.5 → 51.0.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,21 @@
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
+ ## [51.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v50.0.5...v51.0.0) (2023-06-26)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * enabled unicorn rules
12
+ * drop node 16
13
+
14
+ ### Features
15
+
16
+ * enable some unicorn rules with node 18 ([f8da0b1](https://github.com/christophehurpeau/eslint-config-pob/commit/f8da0b1e7e26c3338500684c3527285b68aadb37))
17
+ * update to node 18 ([ab295c6](https://github.com/christophehurpeau/eslint-config-pob/commit/ab295c6d2fd08e9fdb69e7566d6b0239861f646b))
18
+
19
+
20
+
6
21
  ## [50.0.5](https://github.com/christophehurpeau/eslint-config-pob/compare/v50.0.4...v50.0.5) (2023-05-08)
7
22
 
8
23
  **Note:** Version bump only for package @pob/eslint-config
@@ -6,7 +6,7 @@ module.exports = {
6
6
  plugins: ['unicorn'],
7
7
  rules: {
8
8
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
9
- 'unicorn/catch-error-name': ['error', { name: 'err' }],
9
+ 'unicorn/catch-error-name': 'error',
10
10
 
11
11
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md
12
12
  'unicorn/explicit-length-check': 'error',
@@ -228,7 +228,7 @@ module.exports = {
228
228
  'unicorn/prefer-switch': 'error',
229
229
 
230
230
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md
231
- 'unicorn/prefer-node-protocol': 'off',
231
+ 'unicorn/prefer-node-protocol': 'error',
232
232
 
233
233
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md
234
234
  // unicorn/prefer-module is enabled in node configs.
@@ -259,8 +259,7 @@ module.exports = {
259
259
  'unicorn/prefer-top-level-await': 'error',
260
260
 
261
261
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
262
- // use when node 14 support drop
263
- 'unicorn/prefer-at': 'off',
262
+ 'unicorn/prefer-at': 'error',
264
263
 
265
264
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
266
265
  'unicorn/prefer-object-from-entries': 'error',
@@ -324,8 +323,7 @@ module.exports = {
324
323
  'unicorn/prefer-logical-operator-over-ternary': 'error',
325
324
 
326
325
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
327
- // TODO [engine:node@>=16]: change to error
328
- 'unicorn/prefer-event-target': 'warn',
326
+ 'unicorn/prefer-event-target': 'error',
329
327
 
330
328
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
331
329
  'unicorn/no-unnecessary-await': 'error',
@@ -341,6 +339,9 @@ module.exports = {
341
339
 
342
340
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
343
341
  'unicorn/prefer-set-size': 'error',
342
+
343
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
344
+ 'unicorn/prefer-blob-reading-methods': 'error',
344
345
  },
345
346
 
346
347
  overrides: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "50.0.5",
3
+ "version": "51.0.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -13,7 +13,7 @@
13
13
  "homepage": "https://github.com/christophehurpeau/eslint-config-pob",
14
14
  "type": "commonjs",
15
15
  "engines": {
16
- "node": ">=16.0.0"
16
+ "node": ">=18.0.0"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"
@@ -43,7 +43,7 @@
43
43
  "eslint": "^8.28.0",
44
44
  "eslint-plugin-import": "^2.27.5",
45
45
  "eslint-plugin-node": "^11.1.0",
46
- "eslint-plugin-unicorn": "^46.0.1"
46
+ "eslint-plugin-unicorn": "^47.0.0"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "eslint-plugin-import": {
@@ -61,15 +61,15 @@
61
61
  "eslint-config-prettier": "^8.8.0",
62
62
  "eslint-plugin-import": "^2.27.5",
63
63
  "eslint-plugin-node": "^11.1.0",
64
- "eslint-plugin-unicorn": "^46.0.1"
64
+ "eslint-plugin-unicorn": "^47.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "eslint": "8.37.0",
67
+ "eslint": "8.43.0",
68
68
  "eslint-config-airbnb-base": "15.0.0",
69
69
  "eslint-config-prettier": "8.8.0",
70
70
  "eslint-plugin-import": "2.27.5",
71
71
  "eslint-plugin-node": "11.1.0",
72
- "eslint-plugin-unicorn": "46.0.1"
72
+ "eslint-plugin-unicorn": "47.0.0"
73
73
  },
74
- "gitHead": "ae2c1a1aa13062f3ca43464ab4ec84c9696bb541"
74
+ "gitHead": "a0563c0ac29fe3a7302f14d7c9a02b56d6f0c87c"
75
75
  }