Reputation: 87
I configured eslint in the project but it is pointing import and export errors.
I added the plugin config:
"plugins": [
"@typescript-eslint"
"@typescript-eslint/tslint"
]
but it is generating the error " Failed to load plugin '@typescript-eslint/tslint' declared in '.eslintrc.json': Cannot find module 'tslint'"
In the devDependencies was added:
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.5.0"
how could I solve this issue?
Upvotes: 0
Views: 687
Reputation: 87
To solve it was executed the command: ./node_modules/.bin/eslint --init and then reconfigure the eslint.
Installed:
@typescript-eslint/[email protected]
@typescript-eslint/[email protected]
Doc: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
Upvotes: 0
Reputation: 546
Have you tried adding tslint to your dependencies in package.json?
Upvotes: 0