@soleil-se/eslint-config 6.2.3 → 6.2.5

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/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ All changes in this repository are noted here.
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and the project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [6.2.5] - 2025-05-23
11
+
12
+ * Put types first in the import sort order.
13
+
14
+ ## [6.2.4] - 2025-05-23
15
+
16
+ * Add import settings for typescript config.
17
+
10
18
  ## [6.2.3] - 2025-05-16
11
19
 
12
20
  * Adjust sort order for some attributes in Svelte components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/eslint-config",
3
- "version": "6.2.3",
3
+ "version": "6.2.5",
4
4
  "description": "ESLint configuration for Sitevision apps and projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -111,7 +111,7 @@ export default {
111
111
  // ensure absolute imports are above relative imports and that unassigned imports are ignored
112
112
  // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
113
113
  // TODO: enforce a stricter convention in module import order?
114
- 'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
114
+ 'import/order': ['error', { groups: [['type', 'builtin', 'external', 'internal']] }],
115
115
 
116
116
  // Require a newline after the last import/require in a group
117
117
  // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
package/typescript.js CHANGED
@@ -14,9 +14,18 @@ const svelteTypescript = {
14
14
  },
15
15
  };
16
16
 
17
+ const importSettings = {
18
+ settings: {
19
+ 'import/resolver': {
20
+ typescript: true,
21
+ },
22
+ }
23
+ };
24
+
17
25
  export default tseslint.config(
18
26
  ...base(),
19
27
  tseslint.configs.recommended,
20
28
  ...await svelte(),
21
29
  svelteTypescript,
30
+ importSettings,
22
31
  );