diff --git a/src/configs/recommended.ts b/src/configs/recommended.ts index ef7f9c4..9c2bdfe 100644 --- a/src/configs/recommended.ts +++ b/src/configs/recommended.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { plugin } from "../plugin"; const recommended = { diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 7bc2537..85b50a7 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import recommended from "./recommended"; const typescript = { diff --git a/src/index.ts b/src/index.ts index 40a9d22..b6a75eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { plugin } from "./plugin"; import recommendedConfig from "./configs/recommended"; import typescriptConfig from "./configs/typescript"; diff --git a/src/plugin.ts b/src/plugin.ts index 8655475..08bd973 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import componentsReturnOnce from "./rules/components-return-once"; import eventHandlers from "./rules/event-handlers"; import imports from "./rules/imports"; diff --git a/src/rules/components-return-once.ts b/src/rules/components-return-once.ts index 7838e18..c808ec6 100644 --- a/src/rules/components-return-once.ts +++ b/src/rules/components-return-once.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { getFunctionName, type FunctionNode } from "../utils"; diff --git a/src/rules/event-handlers.ts b/src/rules/event-handlers.ts index ad822b1..7da8525 100644 --- a/src/rules/event-handlers.ts +++ b/src/rules/event-handlers.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils, ASTUtils } from "@typescript-eslint/utils"; import { isDOMElementName } from "../utils"; diff --git a/src/rules/jsx-no-duplicate-props.ts b/src/rules/jsx-no-duplicate-props.ts index 504f7d5..0f6a57a 100644 --- a/src/rules/jsx-no-duplicate-props.ts +++ b/src/rules/jsx-no-duplicate-props.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { jsxGetAllProps } from "../utils"; diff --git a/src/rules/jsx-no-script-url.ts b/src/rules/jsx-no-script-url.ts index 5e8c7bd..b14ea46 100644 --- a/src/rules/jsx-no-script-url.ts +++ b/src/rules/jsx-no-script-url.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { ESLintUtils, ASTUtils } from "@typescript-eslint/utils"; const createRule = ESLintUtils.RuleCreator.withoutDocs; diff --git a/src/rules/jsx-no-undef.ts b/src/rules/jsx-no-undef.ts index c4e661f..7bc0ee7 100644 --- a/src/rules/jsx-no-undef.ts +++ b/src/rules/jsx-no-undef.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { isDOMElementName, formatList, appendImports, insertImports } from "../utils"; diff --git a/src/rules/jsx-uses-vars.ts b/src/rules/jsx-uses-vars.ts index 5cac02b..a521c8d 100644 --- a/src/rules/jsx-uses-vars.ts +++ b/src/rules/jsx-uses-vars.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; const createRule = ESLintUtils.RuleCreator.withoutDocs; diff --git a/src/rules/no-array-handlers.ts b/src/rules/no-array-handlers.ts index 631b57c..bd3fca4 100644 --- a/src/rules/no-array-handlers.ts +++ b/src/rules/no-array-handlers.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { isDOMElementName, trace } from "../utils"; diff --git a/src/rules/no-innerhtml.ts b/src/rules/no-innerhtml.ts index b3b3e6e..7107e83 100644 --- a/src/rules/no-innerhtml.ts +++ b/src/rules/no-innerhtml.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { ESLintUtils, ASTUtils } from "@typescript-eslint/utils"; import isHtml from "is-html"; import { jsxPropName } from "../utils"; diff --git a/src/rules/no-proxy-apis.ts b/src/rules/no-proxy-apis.ts index b74ce75..9db7530 100644 --- a/src/rules/no-proxy-apis.ts +++ b/src/rules/no-proxy-apis.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { isFunctionNode, trackImports, isPropsByName, trace } from "../utils"; diff --git a/src/rules/no-react-deps.ts b/src/rules/no-react-deps.ts index 34ff92e..613809a 100644 --- a/src/rules/no-react-deps.ts +++ b/src/rules/no-react-deps.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { ESLintUtils } from "@typescript-eslint/utils"; import { isFunctionNode, trace, trackImports } from "../utils"; diff --git a/src/rules/no-unknown-namespaces.ts b/src/rules/no-unknown-namespaces.ts index b02f13b..7bad7d3 100644 --- a/src/rules/no-unknown-namespaces.ts +++ b/src/rules/no-unknown-namespaces.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { ESLintUtils, TSESTree as T } from "@typescript-eslint/utils"; import { isDOMElementName } from "../utils"; diff --git a/src/rules/prefer-classlist.ts b/src/rules/prefer-classlist.ts index 0d5fddc..066a55f 100644 --- a/src/rules/prefer-classlist.ts +++ b/src/rules/prefer-classlist.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { ESLintUtils, TSESTree as T } from "@typescript-eslint/utils"; import { jsxHasProp, jsxPropName } from "../utils"; diff --git a/src/rules/prefer-for.ts b/src/rules/prefer-for.ts index d46b8a6..f2fcbf8 100644 --- a/src/rules/prefer-for.ts +++ b/src/rules/prefer-for.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils, ASTUtils } from "@typescript-eslint/utils"; import { isFunctionNode, isJSXElementOrFragment } from "../utils"; diff --git a/src/rules/prefer-show.ts b/src/rules/prefer-show.ts index 7ce93cf..a536ac7 100644 --- a/src/rules/prefer-show.ts +++ b/src/rules/prefer-show.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { isJSXElementOrFragment } from "../utils"; diff --git a/src/rules/self-closing-comp.ts b/src/rules/self-closing-comp.ts index b1c68d4..cfb9b8b 100644 --- a/src/rules/self-closing-comp.ts +++ b/src/rules/self-closing-comp.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils } from "@typescript-eslint/utils"; import { isDOMElementName } from "../utils"; diff --git a/src/rules/style-prop.ts b/src/rules/style-prop.ts index 2e31584..b4ca604 100644 --- a/src/rules/style-prop.ts +++ b/src/rules/style-prop.ts @@ -1,3 +1,11 @@ +/** + * FIXME: remove this comments and import when below issue is fixed. + * This import is necessary for type generation due to a bug in the TypeScript compiler. + * See: https://github.com/microsoft/TypeScript/issues/42873 + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +import type { TSESLint } from "@typescript-eslint/utils"; + import { TSESTree as T, ESLintUtils, ASTUtils } from "@typescript-eslint/utils"; import kebabCase from "kebab-case"; import { all as allCssProperties } from "known-css-properties";