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?
Have you tried adding tslint to your dependencies in package.json?
To solve it was executed the command: ./node_modules/.bin/eslint --init and then reconfigure the eslint.
Installed:
@typescript-eslint/eslint-plugin@4.5.0
@typescript-eslint/parser@4.5.0
Doc: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.