-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better-regex
rule not found
#583
Comments
https://github.com/sindresorhus/eslint-plugin-unicorn/releases
|
Yes, thanks, but I'm trying with that new rule, |
Still getting this after #584 / v17.0.1 upgrade (and Atom restart)... |
Figured it out... My home directory had an older copy of unicorn. The IDE's algorithm (FWIW, in (FWIW: Filed as AtomLinter/linter-eslint#1338 ) |
Apologies if this ends up being more of a tooling issue, but as it impacts a new unicorn rule, I thought I'd bring it up in case it is due to some config.
After updating to Unicorn 17.0.0, when I use my IDE (Atom) with the
linter-eslint
package, I am getting an error in my linter, even after IDE restart, that "Definition for rule 'unicorn/better-regex' was not found. (unicorn/better-regex)". Yet when I run myeslint
script for the same repository, there are no complaints. I see it is indeed version 17 innode_modules
, and I see the file forbetter-regex
andindex.js
pointing to it.I have global eslint disabled in the IDE setting (and uninstalled my global copy just to be safe), so I really find it puzzling why it says the rule wasn't found.
Even more puzzling--I get the error about the rule when checking a file in one repo and not in another (where both use the rule).
Getting it even when paring down to just:
or
Adding "root": true` does not help either.
If I switch to
unicorn/regex-shorthand
, it works.Any thoughts of what this could be?
The text was updated successfully, but these errors were encountered: