question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spaces within --rulesdir are stripped

See original GitHub issue

Tell 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:open
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mdjermanoviccommented, Jan 22, 2021

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.

0reactions
mdjermanoviccommented, Oct 22, 2021

This is still blocked on optionator/levn.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found