Spaces within --rulesdir are stripped
See original GitHub issueTell us about your environment
- ESLint Version: v7.18.0
- Node Version: v12.18.1
- npm Version: 6.14.5
~What parser are you using?~ (unrelated - this is a cli argument parsing error)
~Please show your full configuration:~ (unrelated - this is a cli argument parsing error)
What did you do?
Run one of these commands:
eslint --rulesdir "/Volumes/Macintosh HD/Users/test/foo/bar"
eslint --rulesdir /Volumes/Macintosh\ HD/Users/test/foo/bar
What did you expect to happen?
Oops! Something went wrong! :(
ESLint: 7.18.0
Error: ENOENT: no such file or directory, scandir '/Volumes/Macintosh HD/Users/test/foo/bar'
at Object.readdirSync (fs.js:948:3)
...
What actually happened? Please include the actual, raw output from ESLint.
Note the missing space in “Macintosh HD”
Oops! Something went wrong! :(
ESLint: 7.18.0
Error: ENOENT: no such file or directory, scandir '/Volumes/MacintoshHD/Users/test/foo/bar'
at Object.readdirSync (fs.js:948:3)
...
Are you willing to submit a pull request to fix this bug?
Yes
The core issue here is https://github.com/gkz/optionator/issues/34, which I’m currently investigating.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Working with Rules - ESLint - Pluggable JavaScript Linter
"suggestion" means the rule is identifying something that could be done in a better way but no errors will occur if the code...
Read more >Strings are stripped of extra spaces (whitespace collapse)
When I have a value in an object that is a string with extra spaces, those extra spaces get stripped when I access...
Read more >Working with Rules - ESLint中文文档
Each rule in ESLint has two files named with its identifier (for example, ... Note that leading and trailing whitespace is optional in...
Read more >makerules(5) - Arch manual pages
Each sub makefile may be of any type. directories: The make rules for sub directories are located in the file rules.dir. Minimum Requirements...
Read more >MailScanner Configuration Index
Name: Add Envelope From Header Add Envelope From Header
Distro Value: yes Default Value:
Input Type: Allowed Values. yes. no Ruleset Allowed:
Name: Add Envelope To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll mark this as ‘blocked’ for now. Not sure if there’s anything we could do in ESLint aside from upgrading
optionator
to a new version once the problem gets fixed.This is still blocked on optionator/levn.