@pob/eslint-config 59.2.0 → 59.3.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,15 @@
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
+ ## [59.3.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.2.0...v59.3.0) (2024-12-27)
7
+
8
+ ### Features
9
+
10
+ * add scripts override ([ec859e7](https://github.com/christophehurpeau/eslint-config-pob/commit/ec859e7fc6d15a9c2a0c9ea402eb6a66bdb2c80a))
11
+
12
+ Version bump for dependency: @pob/eslint-plugin
13
+
14
+
6
15
  ## [59.2.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.1.2...v59.2.0) (2024-12-17)
7
16
 
8
17
  ### Features
package/lib/index.js CHANGED
@@ -5,7 +5,8 @@ import baseCommonjsConfig from "./base/commonjs.js";
5
5
  import baseModuleConfig from "./base/module.js";
6
6
  import nodePluginCommonjsConfigs from "./node/commonjs.js";
7
7
  import nodePluginModuleConfigs from "./node/module.js";
8
- import testConfig from "./overrides/test.js";
8
+ import scriptsOverrideConfig from "./overrides/scripts.js";
9
+ import testOverrideConfig from "./overrides/test.js";
9
10
  import importPluginBaseConfigs from "./plugins/import/import-base.js";
10
11
  import importPluginCommonjsConfig from "./plugins/import/import-commonjs.js";
11
12
  import importPluginModuleConfig from "./plugins/import/import-module.js";
@@ -95,6 +96,7 @@ export default () => {
95
96
  ...importPluginBaseConfigs,
96
97
  importPluginCommonjsConfig,
97
98
  ...nodePluginCommonjsConfigs,
99
+ scriptsOverrideConfig,
98
100
 
99
101
  ...apply({
100
102
  files: ["**/*.mjs"],
@@ -107,7 +109,7 @@ export default () => {
107
109
 
108
110
  ...apply({
109
111
  files: testFiles,
110
- configs: [testConfig],
112
+ configs: [testOverrideConfig],
111
113
  }),
112
114
  ];
113
115
 
@@ -124,13 +126,14 @@ export default () => {
124
126
 
125
127
  ...apply({
126
128
  files: testFiles,
127
- configs: [testConfig],
129
+ configs: [testOverrideConfig],
128
130
  }),
129
131
  ];
130
132
 
131
133
  const nodeModule = [
132
134
  ...baseModule,
133
135
  ...nodePluginModuleConfigs,
136
+ scriptsOverrideConfig,
134
137
 
135
138
  ...apply({
136
139
  files: ["**/*.cjs"],
@@ -0,0 +1,9 @@
1
+ export default {
2
+ name: "@pob/eslint-config/overrides/scripts",
3
+ rules: {
4
+ "unicorn/no-process-exit": "off",
5
+ "n/hashbang": "off",
6
+ // allow dev dependencies
7
+ "import/no-extraneous-dependencies": ["error", { devDependencies: true }],
8
+ },
9
+ };
@@ -347,10 +347,4 @@ export default [
347
347
  "unicorn/consistent-existence-index-check": "error",
348
348
  },
349
349
  },
350
- {
351
- files: ["scripts/**"],
352
- rules: {
353
- "unicorn/no-process-exit": "off",
354
- },
355
- },
356
350
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "59.2.0",
3
+ "version": "59.3.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -44,17 +44,17 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@eslint/js": "^9.9.0",
47
- "@pob/eslint-plugin": "59.2.0",
47
+ "@pob/eslint-plugin": "59.3.0",
48
48
  "confusing-browser-globals": "^1.0.11",
49
49
  "eslint-plugin-import": "^2.31.0",
50
- "eslint-plugin-n": "^17.15.0",
50
+ "eslint-plugin-n": "^17.15.1",
51
51
  "eslint-plugin-regexp": "^2.7.0",
52
52
  "eslint-plugin-unicorn": "^56.0.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "eslint": "9.17.0",
56
56
  "eslint-plugin-import": "2.31.0",
57
- "eslint-plugin-n": "17.15.0",
57
+ "eslint-plugin-n": "17.15.1",
58
58
  "eslint-plugin-regexp": "2.7.0",
59
59
  "eslint-plugin-unicorn": "56.0.1",
60
60
  "typescript": "5.7.2"