ESLint not recognizing node_modules when mounted to parent dir, VSCode

getting Parsing error: Cannot read file '/home/projects/dir_name/tsconfig.json'.eslint I'm assuming this is because its looking for the tsconfig at projects/dir_name when in reality the project is projects/dir_name/client. Not sure how to best address this
1 Reply
CuriouslyCory
CuriouslyCory3y ago
Is that coming from npm run lint? From what I understand you can either update the npm script command to include: eslint --project path/to/config.json or what would be my preferred solution (if it works sufficently)
//.eslintrc.json
{
"parserOptions": {
"project": "path/to/tsconfig.json"
},
"rules"; {
...
}
}
//.eslintrc.json
{
"parserOptions": {
"project": "path/to/tsconfig.json"
},
"rules"; {
...
}
}
Want results from more Discord servers?
Add your server