New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: use '@typescript-eslint/parser' #304
Comments
After getting it loading correctly I'm getting the following:
Here's my eslint config: {
"plugins": ["prettier", "react", "@typescript-eslint"],
"extends": [
"airbnb-typescript",
// "airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
And ts config: {
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "typescript-eslint-language-service"
}
]
},
"include": ["src"]
} Update: this doesn't seem to be related to the package manager either, using good old yarn v1 it happens too. |
Update: changing the deprecated The following is happening:
With this none of the ESLint rules are triggered by the TS language service plugin where they should be while they are by the ESLint plugin for VSCode, at this point I'm starting to get clueless. |
I'm using yarn berry, which does make it more of a pain than it needs to be. Here's some missing dependencies according to yarn:
After that I get the following:
I am using the latest ESLint. After removing the try catch block in
eslint-config-provider.ts
I'm getting the following:Edit: after changing
@eslint/eslintrc
version from*
to^0.4.3
it loaded correctly.The text was updated successfully, but these errors were encountered: