@zthun/janitor-eslint-config 20.0.7 → 21.0.1

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.
@@ -1,6 +1,6 @@
1
1
  import js from "@eslint/js";
2
2
  import { defineConfig } from "eslint/config";
3
- import _import from "eslint-plugin-import";
3
+ import { flatConfigs as _import } from "eslint-plugin-import-x";
4
4
  import _simple from "eslint-plugin-simple-import-sort";
5
5
  import _unused from "eslint-plugin-unused-imports";
6
6
 
@@ -20,7 +20,7 @@ export const javascript = defineConfig([
20
20
  },
21
21
  },
22
22
  {
23
- ..._import.flatConfigs.recommended,
23
+ ..._import.recommended,
24
24
  files: files(...ExtEs),
25
25
  languageOptions: {
26
26
  parserOptions: {
@@ -37,15 +37,15 @@ export const javascript = defineConfig([
37
37
  rules: {
38
38
  // This lint error is the main reason to use import as we want to make
39
39
  // sure we've installed our dependencies correctly.
40
- "import/no-extraneous-dependencies": "error",
40
+ "import-x/no-extraneous-dependencies": "error",
41
41
 
42
42
  // These are straight up broken with Typescript when you need to work with
43
43
  // mts files that must have the file extension present. These can be fixed
44
44
  // using resolves, but it's such a pain and it's just not worth the hassle
45
45
  // for basic linting support. The no-extraneous-dependencies is really
46
46
  // the recommended config we want, so these being forced off are fine.
47
- "import/named": "off",
48
- "import/no-unresolved": "off",
47
+ "import-x/named": "off",
48
+ "import-x/no-unresolved": "off",
49
49
  },
50
50
  },
51
51
  {
@@ -75,7 +75,7 @@ export const javascript = defineConfig([
75
75
  // auto fix when it's detected and this one does, so we are favoring this
76
76
  // one instead. We're turning off no-unused-modules in case the default
77
77
  // recommended config ever turns it on.
78
- "import/no-unused-modules": "off",
78
+ "import-x/no-unused-modules": "off",
79
79
  "unused-imports/no-unused-imports": "error",
80
80
  },
81
81
  },
@@ -1,6 +1,5 @@
1
+ import _react from "@eslint-react/eslint-plugin";
1
2
  import { defineConfig } from "eslint/config";
2
- import _react from "eslint-plugin-react";
3
- import _hooks from "eslint-plugin-react-hooks";
4
3
 
5
4
  import { ExtEs, files } from "../files/files.mjs";
6
5
 
@@ -14,24 +13,7 @@ export const react = defineConfig([
14
13
  },
15
14
  },
16
15
  {
17
- ..._react.configs.flat.recommended,
16
+ ..._react.configs.recommended,
18
17
  files: files(...ExtEs),
19
- rules: {
20
- // This one is not needed any longer as TypeScript jsx option
21
- // should be set to react-jsx. You will need to turn this on
22
- // manually if it is set to the legacy react setting. See
23
- // https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#whats-different-in-the-new-transform
24
- "react/react-in-jsx-scope": "off",
25
- },
26
- },
27
- {
28
- ..._hooks.configs.flat.recommended,
29
- files: files(...ExtEs),
30
- rules: {
31
- // There are times when refs are appropriate, especially if you are using
32
- // html dialog based elements, which you will most likely need to use
33
- // refs to move or focus.
34
- "react-hooks/refs": "off",
35
- },
36
18
  },
37
19
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/janitor-eslint-config",
3
- "version": "20.0.7",
3
+ "version": "21.0.1",
4
4
  "description": "A shared configuration for eslint for @zthun scoped projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -23,33 +23,32 @@
23
23
  "lib"
24
24
  ],
25
25
  "dependencies": {
26
- "@cspell/eslint-plugin": "^10.0.0",
27
- "@eslint/css": "^1.2.0",
28
- "@eslint/js": "^9.39.4",
29
- "@eslint/json": "^1.2.0",
30
- "@eslint/markdown": "^8.0.2",
31
- "@html-eslint/eslint-plugin": "^0.61.0",
32
- "@vitest/eslint-plugin": "^1.6.18",
26
+ "@cspell/eslint-plugin": "^10.0.1",
27
+ "@eslint-react/eslint-plugin": "^5.18.3",
28
+ "@eslint/css": "^1.4.0",
29
+ "@eslint/js": "^10.0.1",
30
+ "@eslint/json": "^2.0.1",
31
+ "@eslint/markdown": "^8.0.3",
32
+ "@html-eslint/eslint-plugin": "^0.64.0",
33
+ "@vitest/eslint-plugin": "^1.6.26",
33
34
  "eslint-config-prettier": "^10.1.8",
34
- "eslint-plugin-import": "^2.32.0",
35
- "eslint-plugin-prettier": "^5.5.5",
36
- "eslint-plugin-react": "^7.37.5",
37
- "eslint-plugin-react-hooks": "^7.1.1",
38
- "eslint-plugin-simple-import-sort": "^13.0.0",
35
+ "eslint-plugin-import-x": "^4.17.1",
36
+ "eslint-plugin-prettier": "^5.5.6",
37
+ "eslint-plugin-simple-import-sort": "^14.0.0",
39
38
  "eslint-plugin-unused-imports": "^4.4.1",
40
- "eslint-plugin-yml": "^3.3.2",
41
- "globals": "^17.6.0",
42
- "typescript-eslint": "^8.60.0"
39
+ "eslint-plugin-yml": "^3.8.1",
40
+ "globals": "^17.9.0",
41
+ "typescript-eslint": "^8.66.0"
43
42
  },
44
43
  "devDependencies": {
45
- "@zthun/janitor-build-config": "^20.0.6",
46
- "eslint": "^9.39.4",
47
- "prettier": "^3.8.3",
48
- "typescript": "~6.0.3",
49
- "vite": "^8.0.14"
44
+ "@zthun/janitor-build-config": "^21.0.0",
45
+ "eslint": "^10.8.1",
46
+ "prettier": "^3.9.6",
47
+ "typescript": "^6.0.3",
48
+ "vite": "^8.2.1"
50
49
  },
51
50
  "peerDependencies": {
52
- "eslint": ">=9",
51
+ "eslint": "^10",
53
52
  "prettier": ">=3",
54
53
  "react": ">=18 <20",
55
54
  "typescript": ">=5 <7"
@@ -63,5 +62,5 @@
63
62
  "access": "public"
64
63
  },
65
64
  "author": "Anthony Bonta",
66
- "gitHead": "1ca70aa48ca75f2e60fb8d09b618ad8d37101863"
65
+ "gitHead": "ea92c01d2881da0581989e9984079e3b72d933e1"
67
66
  }