@jsenv/eslint-config-relax 1.7.3 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/eslint-config-relax",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "A pleaseant ESLint configuration for any project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,6 +39,7 @@ export const eslintConfigRelax = ({
39
39
  reactVersion = "detect",
40
40
  reactVersionForPreact = "19.2.0",
41
41
  importResolutionLogLevel,
42
+ importResolutionDevConditions = [],
42
43
 
43
44
  browserFiles = [],
44
45
  browserAndNodeFiles = [],
@@ -149,7 +150,12 @@ export const eslintConfigRelax = ({
149
150
  "import-x/resolver": {
150
151
  "@jsenv/eslint-import-resolver": {
151
152
  rootDirectoryUrl: String(rootDirectoryUrl),
152
- packageConditions: ["node", "development", "dev:*", "import"],
153
+ packageConditions: [
154
+ "node",
155
+ "development",
156
+ ...importResolutionDevConditions,
157
+ "import",
158
+ ],
153
159
  logLevel: importResolutionLogLevel,
154
160
  },
155
161
  },
@@ -169,7 +175,11 @@ export const eslintConfigRelax = ({
169
175
  "import-x/resolver": {
170
176
  "@jsenv/eslint-import-resolver": {
171
177
  rootDirectoryUrl: String(rootDirectoryUrl),
172
- packageConditions: ["node", "development", "dev:*"],
178
+ packageConditions: [
179
+ "node",
180
+ "development",
181
+ ...importResolutionDevConditions,
182
+ ],
173
183
  logLevel: importResolutionLogLevel,
174
184
  },
175
185
  },
@@ -262,7 +272,12 @@ export const eslintConfigRelax = ({
262
272
  "import-x/resolver": {
263
273
  "@jsenv/eslint-import-resolver": {
264
274
  rootDirectoryUrl: browserDirectoryUrl || rootDirectoryUrl,
265
- packageConditions: ["browser", "development", "dev:*", "import"],
275
+ packageConditions: [
276
+ "browser",
277
+ "development",
278
+ ...importResolutionDevConditions,
279
+ "import",
280
+ ],
266
281
  logLevel: importResolutionLogLevel,
267
282
  },
268
283
  },