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 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": _typescript_eslint_utils_dist_ts_eslint_Rule.RuleModule<"missingIfNewline", [], _typescript_eslint_utils_dist_ts_eslint_Rule.RuleListener>;
6
- "import-dedupe": _typescript_eslint_utils_dist_ts_eslint_Rule.RuleModule<"importDedupe", [], _typescript_eslint_utils_dist_ts_eslint_Rule.RuleListener>;
7
- "prefer-inline-type-import": _typescript_eslint_utils_dist_ts_eslint_Rule.RuleModule<"preferInlineTypeImport", [], _typescript_eslint_utils_dist_ts_eslint_Rule.RuleListener>;
8
- "generic-spacing": _typescript_eslint_utils_dist_ts_eslint_Rule.RuleModule<"genericSpacingMismatch", [], _typescript_eslint_utils_dist_ts_eslint_Rule.RuleListener>;
9
- "no-const-enum": _typescript_eslint_utils_dist_ts_eslint_Rule.RuleModule<"noConstEnum", [], _typescript_eslint_utils_dist_ts_eslint_Rule.RuleListener>;
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.4.1",
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": "^5.60.1"
13
+ "@typescript-eslint/utils": "^6.1.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^20.3.3",
16
+ "@types/node": "^20.4.2",
17
17
  "unbuild": "^1.2.1",
18
- "vitest": "^0.32.2"
18
+ "vitest": "^0.33.0"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "rimraf dist && unbuild",