Comments (2)
See if uninstalling @typescript-eslint/parser
helps. This config installs that for you, there's no need to install it yourself. I'm not sure if it's the problem, but worth a try, perhaps the versions are out of sync with @typescript-eslint/eslint-plugin
from eslint-config-airbnb-typescript.
I am facing the same issue but with different rules.
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4.4.1",
"eslint": "^7.25.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-react": "7.20.3",
"eslint-plugin-react-hooks": "4.0.8"
}
.eslintrc.js
module.exports = {
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parserOptions: {
project: './tsconfig.eslint.json',
sourceType: 'module',
createDefaultProgram: true,
},
};
tsconfig.eslint.json
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx",]
}
UPDATE
So i tried with new project again and its working fine
.eslintrc.js
module.exports = {
extends: ['airbnb-typescript'],
overrides: [
{
files: ['*.ts', '*.tsx'],
parserOptions: {
project: ['./tsconfig.json'],
},
}
],
parser: '@typescript-eslint/parser',
};
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.22.0",
"eslint": "^7.25.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0"
}
from eslint-config-airbnb-typescript.
Related Issues (20)
- Compatibility with new eslint config spec HOT 2
- Parsing error: ESLint was configured to run xxx However, that TSConfig does not include this file
- '@typescript-eslint/indent' rule is broken upstream and should be removed
- Remove comma-dangle
- prefer-const doesn't seem to be used HOT 2
- Is this repo still maintained? HOT 3
- @typescript-eslint/no-redeclare is ignore block scope of const/let
- Configuration for rule "dot-notation" is invalid HOT 9
- Can't override 'no-use-before-define'?
- need to update dependencies HOT 4
- eslint `valid-typeof` disabled by `airbnb-typescript` & `airbnb-typescript/base` when not explicitly added
- @typescript-eslint/no-unused-vars should follow the same pattern with tsc by default
- Conflicting peer dependency in Angular 17
- Bug with generics: TS7060: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
- Support "Flat Config" (ESLint 9) HOT 9
- Update range of compatibility for @typescript-eslint's plugin and parser HOT 16
- Not sure why this is happening. Deploying on AWS Amplify.
- Consider using `@typescript-eslint/class-methods-use-this`
- Unable to resolve path to module 'typescript-eslint'
- `no-unreachable` should not be disabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-config-airbnb-typescript.