-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Rule node/no-unpublished-require
should ignore webpack config file
#105
Comments
Thank you for this issue. The |
No, I'm working on an app, not a module, so it makes no sense to use Webpack is common enough, so IMHO, makes sense to make an exception for it, for convenience. |
|
|
I use the same config for modules and apps. I don’t see what’s wrong in the rule being a little bit smart. I rather just remove the rule from XO than turning it off manually in each app project. |
The rule requires distinguishing published (production) files and dev files to work, and it's using |
I won't add exceptions by file path into the rule because {
"plugins": [ ... ],
"rules": { ... },
"overrides": [{
"files": ["webpack.config.js", "test/**/*.js"],
"rules": {
"node/no-unpublished-require": "off"
}
}]
} |
That still requires specifying it manually. |
@sindresorhus I think you should reconsider not using It's also functional in many cases, even for apps. For example, everything I deploy to now.sh uses |
I'm currently getting:
With v5.2.1
The text was updated successfully, but these errors were encountered: