Skip to content

Commit

Permalink
Fix JSDoc type imports of @typescript-eslint/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Jul 18, 2023
1 parent 15f3f32 commit 2bd488e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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'],
};
Expand Down
6 changes: 3 additions & 3 deletions index.cjs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion templates/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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'],
};
Expand Down

0 comments on commit 2bd488e

Please sign in to comment.