-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Eslint fails on node-no-missing-require and node/no-unpublished-require #3088
Comments
Hey @NickColley you'll probably need to adjust the allowModules plugin setting to exclude ava. I had to do a similar thing for |
I ran into the In my case it was triggered because |
I wonder given my repository has "private" set to true so it can never be published if these rules could automatically relax? Here's the config I ended up going with: {
"eslintConfig": {
"rules": {
"node/no-unpublished-import": "off",
"node/no-missing-import": [
"error",
{
"allowModules": [
"ava"
]
}
]
}
}
} |
@NickColley I had the same thoughts and that's indeed a popular request in the eslint-plugin-node repo: mysticatea/eslint-plugin-node#77 Sadly that projects is kind of unmaintained at the moment. I did however create a PR in the community fork but that still needs to be reviewed. |
Seems like this is already discussed then, thank you for your time. |
With eslint node/recommended I get:
Is there something missing from my configuration or ava's published package.json?
The text was updated successfully, but these errors were encountered: