-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
8.56.0
What version of typescript-eslint-parser-for-extra-files
are you using?
- typescript-eslint-parser-for-extra-files@0.5.0
What did you do?
Configuration
parserOptions: {
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
overrides: [{ // https://stackoverflow.com/questions/57107800/eslint-disable-extends-in-override
files: '*.ts',
parser: 'typescript-eslint-parser-for-extra-files',
settings: { 'import/resolver': { typescript: true } },
}, {
files: '*.vue',
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'typescript-eslint-parser-for-extra-files',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
const queryFormRef = ref<typeof QueryForm>();
// ...
switch (queryFormRef.value?.getCurrentQueryType()) {
^^^^^^^^^^^^
// Unsafe call of an `any` typed value.(@typescript-eslint/no-unsafe-call)
What did you expect to happen?
Not reporting since the typing of typeof VueComponent
is correctly inferred:
What actually happened?
typeof VueComponent
being inferred as any
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/n0099/open-tbm/blob/3ac89945c462f35f5400bec45fa9e4e1c26622f3/fe
Additional comments
No response
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed