@jsenv/eslint-config-relax 1.7.0 → 1.7.2

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.0",
3
+ "version": "1.7.2",
4
4
  "description": "A pleaseant ESLint configuration for any project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,8 @@ export const eslintConfigRelax = ({
36
36
  prettierSortImport,
37
37
  jsxPragmaAuto = false,
38
38
  preact,
39
+ reactVersion = "detect",
40
+ reactVersionForPreact = "19.2.0",
39
41
  importResolutionLogLevel,
40
42
 
41
43
  browserFiles = [],
@@ -190,7 +192,7 @@ export const eslintConfigRelax = ({
190
192
  },
191
193
  settings: {
192
194
  react: {
193
- version: "detect",
195
+ version: preact ? reactVersionForPreact : reactVersion,
194
196
  },
195
197
  },
196
198
  rules: {
@@ -260,7 +262,7 @@ export const eslintConfigRelax = ({
260
262
  "import-x/resolver": {
261
263
  "@jsenv/eslint-import-resolver": {
262
264
  rootDirectoryUrl: browserDirectoryUrl || rootDirectoryUrl,
263
- packageConditions: ["browser", "import"],
265
+ packageConditions: ["browser", "development", "dev:*", "import"],
264
266
  logLevel: importResolutionLogLevel,
265
267
  },
266
268
  },