@pob/eslint-config 65.0.3 → 65.0.5

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 testOverrideConfigs 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,15 @@ export default () => {
42
45
  const extensions = "{js,cjs,mjs}";
43
46
 
44
47
  const testFiles = [
45
- `**/*.test(-e2e)?${extensions}`,
48
+ `**/*.test.${extensions}`,
49
+ `**/*.test-e2e.${extensions}`,
46
50
  `**/__tests__/**/*.${extensions}`,
47
51
  `**/__mocks__/**/*.${extensions}`,
48
52
  ];
49
53
 
50
54
  const tsTestFiles = [
51
- `**/*.test(-e2e)?${tsExtensions}`,
55
+ `**/*.test.${tsExtensions}`,
56
+ `**/*.test-e2e.${tsExtensions}`,
52
57
  `**/__tests__/**/*.${tsExtensions}`,
53
58
  `**/__mocks__/**/*.${tsExtensions}`,
54
59
  ];
@@ -66,7 +71,7 @@ export default () => {
66
71
  }),
67
72
  ...apply({
68
73
  files: tsTestFiles,
69
- configs: testOverrideConfigs,
74
+ configs: testOverrideConfigsWithTypescript,
70
75
  }),
71
76
  ];
72
77
 
@@ -103,7 +108,7 @@ export default () => {
103
108
 
104
109
  ...apply({
105
110
  files: testFiles,
106
- configs: testOverrideConfigs,
111
+ configs: testOverrideConfigsWithoutTypescript,
107
112
  }),
108
113
  ];
109
114
 
@@ -125,11 +130,6 @@ export default () => {
125
130
  configs: [baseCommonjsConfig, importPluginCommonjsConfig],
126
131
  }),
127
132
 
128
- ...apply({
129
- files: testFiles,
130
- configs: testOverrideConfigs,
131
- }),
132
-
133
133
  ...typescriptConfigs,
134
134
  ];
135
135
 
@@ -155,11 +155,6 @@ export default () => {
155
155
  }),
156
156
 
157
157
  ...nodeTypescriptConfigs,
158
-
159
- ...apply({
160
- files: tsTestFiles,
161
- configs: testOverrideConfigs,
162
- }),
163
158
  ];
164
159
 
165
160
  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.3",
3
+ "version": "65.0.5",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",