@singlepixellab/eslint-config 2.2.1 → 2.2.3

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/eslint.config.js CHANGED
@@ -1,9 +1,9 @@
1
- import ignores from "./rules/ignores.js";
2
1
  import core from "./rules/core.js";
2
+ import ignores from "./rules/ignores.js";
3
3
  import imports from "./rules/imports.js";
4
- import react from "./rules/react.js";
5
- import prettier from "./rules/prettier.js";
6
4
  import jsdoc from "./rules/jsdoc.js";
5
+ import prettier from "./rules/prettier.js";
6
+ import react from "./rules/react.js";
7
7
  import styles from "./rules/styles.js";
8
8
  import typescript from "./rules/typescript.js";
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singlepixellab/eslint-config",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "The ESLint rules and configs used by Single Pixel Lab",
5
5
  "author": "Single Pixel Lab",
6
6
  "keywords": [
@@ -77,6 +77,7 @@
77
77
  "@eslint/js": "^9.39.4",
78
78
  "@stylistic/eslint-plugin": "^5.10.0",
79
79
  "eslint-config-prettier": "^10.1.8",
80
+ "eslint-import-resolver-node": "^0.3.10",
80
81
  "eslint-import-resolver-typescript": "^4.4.4",
81
82
  "eslint-plugin-import": "^2.32.0",
82
83
  "eslint-plugin-jsdoc": "^62.7.1",
package/rules/imports.js CHANGED
@@ -78,24 +78,20 @@ export default [
78
78
  enabled: true,
79
79
  types: "types-last",
80
80
  },
81
- "sortTypesGroup": true,
82
81
  "pathGroups": [
83
82
  {
84
83
  pattern: "~*/**",
85
- group: "external",
84
+ group: "internal",
86
85
  position: "after",
87
86
  },
88
87
  ],
89
88
  "groups": [
90
- [
91
- "builtin",
92
- "external",
93
- "internal",
94
- "parent",
95
- "sibling",
96
- "index",
97
- "type",
98
- ],
89
+ "builtin",
90
+ "external",
91
+ "internal",
92
+ "parent",
93
+ "sibling",
94
+ "index",
99
95
  ],
100
96
  },
101
97
  ],
package/rules/react.js CHANGED
@@ -1,5 +1,5 @@
1
- import reactPlugin from "eslint-plugin-react";
2
1
  import jsxA11y from "eslint-plugin-jsx-a11y";
2
+ import reactPlugin from "eslint-plugin-react";
3
3
  import reactHooks from "eslint-plugin-react-hooks";
4
4
 
5
5
  /** @type {import('eslint').Linter.Config[]} */