Closed
Description
When configuring default options for ESLint through VSCode options, the env
option is ignored:
// VSCode settings
{
"eslint.options": {
"rules": {
"no-undef": ["error"]
},
"env": {
"browser": true
}
}
}
// Any JavaScript file, errors with "'alert' is not defined"
alert('baz')
Notes:
- This seems to be the exact same issue as Eslint.options Env doesn't apply on Node LTS #395.
- Everything works as expected when the same options are defined in an
.eslintrc
file.
A reproduction repository can be found at loilo/repro-vscode-eslint-676.
Metadata
Metadata
Assignees
Labels
No labels