From 2bd488ee61e1c8f6e953295ff83060e08b835874 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Tue, 18 Jul 2023 17:25:26 +0200 Subject: [PATCH] Fix JSDoc type imports of @typescript-eslint/utils --- .eslintrc.cjs | 2 +- index.cjs | 6 +++--- templates/.eslintrc.cjs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 6ee35d9..6a02519 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */ +/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config} */ const config = { extends: ['upleveled'], }; diff --git a/index.cjs b/index.cjs index 5746d98..9c4f971 100644 --- a/index.cjs +++ b/index.cjs @@ -1,4 +1,4 @@ -/** @type {import('@typescript-eslint/utils').TSESLint.Linter.RuleLevelAndOptions} */ +/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.RuleLevelAndOptions} */ const noRestrictedSyntaxOptions = [ 'warn', // Currently it is not possible to use Markdown eg. links in ESLint warnings / error messages @@ -192,7 +192,7 @@ Prefer an if...else statement like this: * https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/index.js * https://github.com/facebook/create-react-app/blob/main/packages/eslint-config-react-app/base.js * - * @type {import('@typescript-eslint/utils').TSESLint.Linter.Config['rules']} + * @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config['rules']} */ const eslintConfigReactAppRules = { 'array-callback-return': 'warn', @@ -419,7 +419,7 @@ const eslintConfigReactAppRules = { 'react-hooks/rules-of-hooks': 'error', }; -/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */ +/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config} */ const config = { root: true, parser: '@typescript-eslint/parser', diff --git a/templates/.eslintrc.cjs b/templates/.eslintrc.cjs index 6ee35d9..6a02519 100644 --- a/templates/.eslintrc.cjs +++ b/templates/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */ +/** @type {import('@typescript-eslint/utils/dist').TSESLint.Linter.Config} */ const config = { extends: ['upleveled'], };