@pob/eslint-config 52.0.1 → 54.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,34 @@
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
+ ## [54.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v53.1.0...v54.0.0) (2024-02-17)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * replace eslint-plugin-node by eslint-plugin-n
12
+
13
+ ### Features
14
+
15
+ * replace eslint-plugin-node by eslint-plugin-n ([571efde](https://github.com/christophehurpeau/eslint-config-pob/commit/571efde42fa98ac9f1ef84c00f04ed3bae646062))
16
+
17
+
18
+
19
+
20
+ ## [53.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v52.0.1...v53.0.0) (2023-12-28)
21
+
22
+
23
+ ### ⚠ BREAKING CHANGES
24
+
25
+ * feat: change import/extensions to ignorePackages
26
+
27
+ ### Reverts
28
+
29
+ * feat: change import/extensions to ignorePackages ([78573ba](https://github.com/christophehurpeau/eslint-config-pob/commit/78573ba9b5f2c80b012b0211e52a4f77b9695fba))
30
+
31
+
32
+
33
+
6
34
  ## [52.0.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v52.0.0...v52.0.1) (2023-12-28)
7
35
 
8
36
 
package/README.md CHANGED
@@ -20,5 +20,5 @@
20
20
 
21
21
  ### node
22
22
 
23
- 1. `npm install --save-dev eslint @pob/eslint-config @pob/eslint-config-node eslint-plugin-node eslint-plugin-import`
24
- 2. add `"extends": ["@pob/eslint-config", "@pob/eslint-config-node"]` to your .eslintrc.json
23
+ 1. `npm install --save-dev eslint @pob/eslint-config eslint-plugin-n eslint-plugin-import`
24
+ 2. add `"extends": ["@pob/eslint-config", "@pob/eslint-config/node"]` to your .eslintrc.json
package/lib/node/_base.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  exports.overrideRules = {
4
4
  // Disable rules already checked by import plugin
5
- 'node/no-unpublished-require': 'off',
6
- 'node/no-extraneous-require': 'off',
7
- 'node/no-unpublished-import': 'off',
8
- 'node/no-extraneous-import': 'off',
9
- 'node/no-missing-require': 'off',
10
- 'node/no-missing-import': 'off',
5
+ 'n/no-unpublished-require': 'off',
6
+ 'n/no-extraneous-require': 'off',
7
+ 'n/no-unpublished-import': 'off',
8
+ 'n/no-extraneous-import': 'off',
9
+ 'n/no-missing-require': 'off',
10
+ 'n/no-missing-import': 'off',
11
11
 
12
12
  // Allow process.exit
13
- 'node/no-process-exit': 'off',
13
+ 'n/no-process-exit': 'off',
14
14
 
15
15
  // ensure deprecated eslint rules are disabled
16
16
  'callback-return': 'off',
@@ -3,8 +3,8 @@
3
3
  const { env, overrideRules } = require('./_base');
4
4
 
5
5
  module.exports = {
6
- plugins: ['node'],
7
- extends: ['plugin:node/recommended-script'],
6
+ plugins: ['n'],
7
+ extends: ['plugin:n/recommended-script'],
8
8
  env,
9
9
 
10
10
  parserOptions: {
@@ -23,7 +23,7 @@ module.exports = {
23
23
  overrides: [
24
24
  {
25
25
  files: ['*.mjs'],
26
- extends: ['plugin:node/recommended-module'],
26
+ extends: ['plugin:n/recommended-module'],
27
27
  parserOptions: {
28
28
  sourceType: 'module',
29
29
  ecmaVersion: 2022,
@@ -3,8 +3,8 @@
3
3
  const { env, overrideRules } = require('./_base');
4
4
 
5
5
  module.exports = {
6
- plugins: ['node'],
7
- extends: ['plugin:node/recommended-module'],
6
+ plugins: ['n'],
7
+ extends: ['plugin:n/recommended-module'],
8
8
  parserOptions: {
9
9
  sourceType: 'module',
10
10
  // https://node.green/#ES2020
@@ -38,7 +38,7 @@ module.exports = {
38
38
  },
39
39
  {
40
40
  files: ['*.cjs'],
41
- extends: ['plugin:node/recommended-script'],
41
+ extends: ['plugin:n/recommended-script'],
42
42
  parserOptions: {
43
43
  sourceType: 'script',
44
44
  ecmaVersion: 2022,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "52.0.1",
3
+ "version": "54.0.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -15,9 +15,7 @@
15
15
  "engines": {
16
16
  "node": ">=18.12.0"
17
17
  },
18
- "publishConfig": {
19
- "access": "public"
20
- },
18
+ "sideEffects": false,
21
19
  "main": "./lib/index.js",
22
20
  "exports": {
23
21
  ".": "./lib/base.js",
@@ -31,7 +29,9 @@
31
29
  "./utils": "./utils.js",
32
30
  "./package.json": "./package.json"
33
31
  },
34
- "sideEffects": false,
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
35
  "files": [
36
36
  "lib",
37
37
  "utils.js"
@@ -40,19 +40,19 @@
40
40
  "lint": "yarn run lint:eslint",
41
41
  "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet @pob/eslint-config"
42
42
  },
43
- "prettier": "@pob/root/prettier-config",
44
43
  "pob": {},
44
+ "prettier": "@pob/root/prettier-config",
45
45
  "peerDependencies": {
46
- "eslint": "^8.55.0",
46
+ "eslint": "^8.56.0",
47
47
  "eslint-plugin-import": "^2.29.1",
48
- "eslint-plugin-node": "^11.1.0",
49
- "eslint-plugin-unicorn": "^49.0.0"
48
+ "eslint-plugin-n": "^16.6.2",
49
+ "eslint-plugin-unicorn": "^51.0.1"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "eslint-plugin-import": {
53
53
  "optional": true
54
54
  },
55
- "eslint-plugin-node": {
55
+ "eslint-plugin-n": {
56
56
  "optional": true
57
57
  },
58
58
  "eslint-plugin-unicorn": {
@@ -63,15 +63,15 @@
63
63
  "eslint-config-airbnb-base": "^15.0.0",
64
64
  "eslint-config-prettier": "^9.1.0",
65
65
  "eslint-plugin-import": "^2.29.1",
66
- "eslint-plugin-node": "^11.1.0",
67
- "eslint-plugin-unicorn": "^49.0.0"
66
+ "eslint-plugin-n": "^16.6.2",
67
+ "eslint-plugin-unicorn": "^51.0.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-airbnb-base": "15.0.0",
72
72
  "eslint-config-prettier": "9.1.0",
73
73
  "eslint-plugin-import": "2.29.1",
74
- "eslint-plugin-node": "11.1.0",
75
- "eslint-plugin-unicorn": "49.0.0"
74
+ "eslint-plugin-n": "16.6.2",
75
+ "eslint-plugin-unicorn": "51.0.1"
76
76
  }
77
77
  }