eslint-plugin-kirklin 0.4.1 → 0.5.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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -230,7 +230,7 @@ const preferInlineTypeImport = createEslintRule({
|
|
|
230
230
|
if (node.specifiers.length === 1 && ["ImportNamespaceSpecifier", "ImportDefaultSpecifier"].includes(node.specifiers[0].type)) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
-
if (node.importKind === "type") {
|
|
233
|
+
if (node.importKind === "type" && node.specifiers.length > 0) {
|
|
234
234
|
context.report({
|
|
235
235
|
*fix(fixer) {
|
|
236
236
|
yield* removeTypeSpecifier(fixer, sourceCode, node);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import * as _typescript_eslint_utils_dist_ts_eslint_Rule from '@typescript-eslint/utils/dist/ts-eslint/Rule';
|
|
2
|
-
|
|
3
1
|
declare const _default: {
|
|
4
2
|
rules: {
|
|
5
|
-
"if-newline":
|
|
6
|
-
"import-dedupe":
|
|
7
|
-
"prefer-inline-type-import":
|
|
8
|
-
"generic-spacing":
|
|
9
|
-
"no-const-enum":
|
|
3
|
+
"if-newline": any;
|
|
4
|
+
"import-dedupe": any;
|
|
5
|
+
"prefer-inline-type-import": any;
|
|
6
|
+
"generic-spacing": any;
|
|
7
|
+
"no-const-enum": any;
|
|
10
8
|
};
|
|
11
9
|
};
|
|
12
10
|
|
package/dist/index.mjs
CHANGED
|
@@ -228,7 +228,7 @@ const preferInlineTypeImport = createEslintRule({
|
|
|
228
228
|
if (node.specifiers.length === 1 && ["ImportNamespaceSpecifier", "ImportDefaultSpecifier"].includes(node.specifiers[0].type)) {
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
if (node.importKind === "type") {
|
|
231
|
+
if (node.importKind === "type" && node.specifiers.length > 0) {
|
|
232
232
|
context.report({
|
|
233
233
|
*fix(fixer) {
|
|
234
234
|
yield* removeTypeSpecifier(fixer, sourceCode, node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-kirklin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/kirklin/eslint-config",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@typescript-eslint/utils": "^
|
|
13
|
+
"@typescript-eslint/utils": "^6.1.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@types/node": "^20.
|
|
16
|
+
"@types/node": "^20.4.2",
|
|
17
17
|
"unbuild": "^1.2.1",
|
|
18
|
-
"vitest": "^0.
|
|
18
|
+
"vitest": "^0.33.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rimraf dist && unbuild",
|