@pob/eslint-config 65.0.2 → 65.0.4

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/lib/index.js CHANGED
@@ -10,7 +10,10 @@ import allowUnsafeAsWarnConfig from "./overrides/allow-unsafe-as-warn.js";
10
10
  import allowUnsafeConfig from "./overrides/allow-unsafe.js";
11
11
  import appConfig from "./overrides/app.js";
12
12
  import scriptsOverrideConfig from "./overrides/scripts.js";
13
- import testOverrideConfig from "./overrides/test.js";
13
+ import {
14
+ testOverrideConfigsWithTypescript,
15
+ testOverrideConfigsWithoutTypescript,
16
+ } from "./overrides/test.js";
14
17
  import importPluginBaseConfigs from "./plugins/import/import-base.js";
15
18
  import importPluginCommonjsConfig from "./plugins/import/import-commonjs.js";
16
19
  import importPluginModuleConfig from "./plugins/import/import-module.js";
@@ -42,13 +45,13 @@ export default () => {
42
45
  const extensions = "{js,cjs,mjs}";
43
46
 
44
47
  const testFiles = [
45
- `**/*.test(-e2e)?${extensions}`,
48
+ `**/*.test(-e2e)?.${extensions}`,
46
49
  `**/__tests__/**/*.${extensions}`,
47
50
  `**/__mocks__/**/*.${extensions}`,
48
51
  ];
49
52
 
50
53
  const tsTestFiles = [
51
- `**/*.test(-e2e)?${tsExtensions}`,
54
+ `**/*.test(-e2e)?.${tsExtensions}`,
52
55
  `**/__tests__/**/*.${tsExtensions}`,
53
56
  `**/__mocks__/**/*.${tsExtensions}`,
54
57
  ];
@@ -66,7 +69,7 @@ export default () => {
66
69
  }),
67
70
  ...apply({
68
71
  files: tsTestFiles,
69
- configs: [testOverrideConfig],
72
+ configs: testOverrideConfigsWithTypescript,
70
73
  }),
71
74
  ];
72
75
 
@@ -103,7 +106,7 @@ export default () => {
103
106
 
104
107
  ...apply({
105
108
  files: testFiles,
106
- configs: [testOverrideConfig],
109
+ configs: testOverrideConfigsWithoutTypescript,
107
110
  }),
108
111
  ];
109
112
 
@@ -125,11 +128,6 @@ export default () => {
125
128
  configs: [baseCommonjsConfig, importPluginCommonjsConfig],
126
129
  }),
127
130
 
128
- ...apply({
129
- files: testFiles,
130
- configs: [testOverrideConfig],
131
- }),
132
-
133
131
  ...typescriptConfigs,
134
132
  ];
135
133
 
@@ -154,13 +152,7 @@ export default () => {
154
152
  configs: [...nodePluginCommonjsConfigs],
155
153
  }),
156
154
 
157
- ...typescriptConfigs,
158
155
  ...nodeTypescriptConfigs,
159
-
160
- ...apply({
161
- files: tsTestFiles,
162
- configs: [testOverrideConfig],
163
- }),
164
156
  ];
165
157
 
166
158
  return {
@@ -1,4 +1,4 @@
1
- export default [
1
+ export const testOverrideConfigsWithoutTypescript = [
2
2
  {
3
3
  name: "@pob/eslint-config/test",
4
4
 
@@ -10,6 +10,10 @@ export default [
10
10
  ],
11
11
  },
12
12
  },
13
+ ];
14
+
15
+ export const testOverrideConfigsWithTypescript = [
16
+ ...testOverrideConfigsWithoutTypescript,
13
17
  {
14
18
  name: "@pob/eslint-config/test-typescript",
15
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "65.0.2",
3
+ "version": "65.0.4",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",