eslint-config-matsuri 5.5.6 → 5.6.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.
@@ -2,6 +2,7 @@ import globals from "globals";
2
2
  import js from "@eslint/js";
3
3
  import pluginPrettier from "eslint-config-prettier";
4
4
  import pluginUnusedImport from "eslint-plugin-unused-imports";
5
+ import importPlugin from "eslint-plugin-import";
5
6
 
6
7
  /** @type {import("eslint").Linter.Config } */
7
8
  export const jsConfig = {
@@ -11,6 +12,7 @@ export const jsConfig = {
11
12
  files: ["**/*.js", "**/*.mjs", "**/*.ts", "**/*.tsx"],
12
13
  plugins: {
13
14
  "unused-imports": pluginUnusedImport,
15
+ import: importPlugin,
14
16
  },
15
17
  languageOptions: {
16
18
  ecmaVersion: "latest",
@@ -51,5 +53,22 @@ export const jsConfig = {
51
53
  argsIgnorePattern: "^_",
52
54
  },
53
55
  ],
56
+
57
+ // import plugin rules
58
+ "import/order": [
59
+ "error",
60
+ {
61
+ groups: [
62
+ "builtin",
63
+ "external",
64
+ "internal",
65
+ "parent",
66
+ "sibling",
67
+ "index",
68
+ "object",
69
+ "type",
70
+ ],
71
+ },
72
+ ],
54
73
  },
55
74
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-matsuri",
3
- "version": "5.5.6",
3
+ "version": "5.6.1",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "index.js",
@@ -27,14 +27,15 @@
27
27
  "eslint": "^8.43.0 || ^9.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@eslint/js": "9.35.0",
30
+ "@eslint/js": "9.37.0",
31
31
  "eslint-config-prettier": "10.1.8",
32
32
  "eslint-plugin-css-reorder": "0.5.1",
33
+ "eslint-plugin-import": "2.32.0",
33
34
  "eslint-plugin-jsx-a11y": "6.10.2",
34
35
  "eslint-plugin-react": "7.37.5",
35
- "eslint-plugin-react-hooks": "5.2.0",
36
+ "eslint-plugin-react-hooks": "6.1.1",
36
37
  "eslint-plugin-unused-imports": "4.2.0",
37
38
  "globals": "16.4.0",
38
- "typescript-eslint": "8.43.0"
39
+ "typescript-eslint": "8.46.0"
39
40
  }
40
41
  }