You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
I installed ESLint globally and enabled the 'Global ESLint/Use global ESLint installation' checkbox. There is no local ESLint installed. Configuration looks like this:
When '.eslintrc Path' is /.eslintrc.js as shown in the image, the config file is able to load correctly. C:/.eslintrc.js and C:\.eslintrc.js works as well.
However it seems to have trouble when the file is inside a subdirectory. If I put the config file in C:/Config/ and set the path as /Config/.eslintrc.js, the config file is no longer loaded. Neither do C:/Config/.eslintrc.js nor C:\Config\.eslintrc.js work.
Strangely, if you leave .eslintrc.js under C:\.eslintrc.js, and set the path as anything else (e.g. /Config/.eslintrc.js, C:\.eslintrc.js is still loaded. This is leading me to suspect that the option 'Global ESLint/.eslintrc Path' is not applied at all, and hard-coded /.eslintrc.js is being applied regardless.
Bug Checklist
Restart Atom
N/A Verify the eslint CLI gives the proper result, while linter-eslint does not
Paste the output of the Linter Eslint: Debug command from the Command Palette below
Linter Eslint: Debug output:
When C:/.eslintrc.js exists and path is /.eslintrc.js:
Issue Type
Bug
Issue Description
I installed ESLint globally and enabled the 'Global ESLint/Use global ESLint installation' checkbox. There is no local ESLint installed. Configuration looks like this:
When '.eslintrc Path' is
/.eslintrc.js
as shown in the image, the config file is able to load correctly.C:/.eslintrc.js
andC:\.eslintrc.js
works as well.However it seems to have trouble when the file is inside a subdirectory. If I put the config file in
C:/Config/
and set the path as/Config/.eslintrc.js
, the config file is no longer loaded. Neither doC:/Config/.eslintrc.js
norC:\Config\.eslintrc.js
work.Strangely, if you leave
.eslintrc.js
underC:\.eslintrc.js
, and set the path as anything else (e.g./Config/.eslintrc.js
,C:\.eslintrc.js
is still loaded. This is leading me to suspect that the option 'Global ESLint/.eslintrc Path' is not applied at all, and hard-coded/.eslintrc.js
is being applied regardless.Bug Checklist
eslint
CLI gives the proper result, whilelinter-eslint
does notLinter Eslint: Debug
command from the Command Palette belowLinter Eslint: Debug
output:When
C:/.eslintrc.js
exists and path is/.eslintrc.js
:When
C:/.eslintrc.js
exists and path is/Config/.eslintrc.js
:When
C:/.eslintrc.js
does not exist and path is/Config/.eslintrc.js
:Command errors on execution:
The text was updated successfully, but these errors were encountered: