Open haotan19 opened 2 years ago
Create a .vscode/settings.json
file:
{
"eslint.options": {
"configFile": "[Your eslintrc.js file path]",
},
}
My working example:
{
"eslint.options": {
"configFile": ".config/.eslintrc.js",
},
}
I created a PR #143 , hope this helps!
Operating system
Windows 10
Node.js version
14.16.0
Shopify CLI version
2.7.2
Browsers
Chrome
Version
4 (Current)
Modifications
No response
Details
Problem: It seems ESLint extension can not detect the
.config/.eslintrc.js
ESLint error is not showing up in the VS Code with ESLint extension. But theyarn fix:js
work just fine.Steps:
yarn
the projectsrc/vue/components/render
OUTPUT
in VS Code, select the ESLint output, and it said:Notice