Closed as not planned
Description
While using @typescript-eslint/recommended-requiring-type-checking
with vue-eslint-parser
as parser
, @typescript-eslint/parser
can't check for types when there is no <script>
used in a Vue SFC.
Stacktrace:
Oops! Something went wrong! :(
ESLint: 8.17.0
Error: Error while loading rule '@typescript-eslint/dot-notation': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Occurred while linting /Users/drjume/Desktop/falconDev/my-falcondev/apps/web/src/views/NotFoundView.vue
at getParserServices (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+utils@5.27.1_ud6rd4xtew5bv4yhvkvu24pzm4/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:16:15)
at create (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+eslint-plugin@5.27.1_aq7uryhocdbvbqum33pitcm3y4/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js:85:81)
at Object.create (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/@typescript-eslint+utils@5.27.1_ud6rd4xtew5bv4yhvkvu24pzm4/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:42:20)
at createRuleListeners (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:922:21)
at /Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1104:31
at Array.forEach (<anonymous>)
at runRules (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1041:34)
at Linter._verifyWithoutProcessors (/Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1389:31)
at /Users/drjume/Desktop/falconDev/my-falcondev/node_modules/.pnpm/eslint@8.17.0/node_modules/eslint/lib/linter/linter.js:1798:29
at Array.map (<anonymous>)
When adding an empty <script setup lang="ts"></script>
the error is not shown anymore when running eslint.
The issue seems to be, that the parserServices
or a property of it is missing when there is no <script>
in a Vue SFC:
Metadata
Metadata
Assignees
Labels
No labels