eslint-plugin-imports-regulation 0.2.2 → 0.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.
|
@@ -175,7 +175,9 @@ const rule = {
|
|
|
175
175
|
return false;
|
|
176
176
|
const everyBinding = node.specifiers.length > 0
|
|
177
177
|
&& node.specifiers.every(specifier => typeOnly.has(specifier.local.name));
|
|
178
|
-
|
|
178
|
+
// Not gated on `preferTypeDeclarations`: that option is about leaving a spelling you
|
|
179
|
+
// wrote alone. Here there is no spelling yet, and `import type` is the one to write.
|
|
180
|
+
if (everyBinding) {
|
|
179
181
|
const keyword = source.getFirstToken(node);
|
|
180
182
|
if (!keyword)
|
|
181
183
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-imports-regulation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Order imports: package type-only, package, blank line, local type-only, local — with type specifiers last inside each import.",
|
|
5
5
|
"author": "Robert Sandiford",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.19.15",
|
|
33
33
|
"eslint": "^10.8.1",
|
|
34
|
-
"typescript-eslint": "^8.
|
|
34
|
+
"typescript-eslint": "^8.70.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"compile": "tsc",
|