I tried it a lot of times now, I thought it's a lot better to ask someone else.
Error message:
Cannot read config file: C:\Users\itsjzt\.eslintrc.json Error: Unexpected token � in JSON at position 0
Settings:
{
"editor.tabSize": 2,
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"workbench.colorTheme": "Dracula",
"editor.minimap.enabled": false,
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.fontSize": 16,
"eslint.packageManager": "yarn",
"eslint.options": { "configFile": "C:\\Users\\itsjzt\\.eslintrc.json" }
}
plugins:
dbaeumer.vscode-eslint
dracula-theme.theme-dracula
lukehoban.Go
PKief.material-icon-theme
WakaTime.vscode-wakatime
WallabyJs.quokka-vscode
.eslintrc.json
{
"extends": "airbnb"
}
OS: Windows 10 1709
Top comments (5)
Also, I think we used this guide to set up ESLint with Airbnb flavor:
travishorn.com/setting-up-eslint-o...
@maestromac would be able to confirm.
Any reason you're not using npm to configure your ESLint?
got the problem, it was due to some weird file format.
I didn't know how to make a global .eslintrc, so I googled and copy pasted the config.
Hmm interesting. Might be a Windows thing. I always had issues creating irregular file extensions with Windows. Glad you figured it out though.
Sometimes Windows sucks
Hmm what happens if you change
.eslintrc.json
to an empty object{}
?