-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add /config/addon-docs.js to npmignore automatically #103
Comments
/config/addon-docs.js /* eslint-env node */
'use strict';
const AddonDocsConfig = require('ember-cli-addon-docs/lib/config');
module.exports = class extends AddonDocsConfig {
// See https://ember-learn.github.io/ember-cli-addon-docs/latest/docs/deploying
// for details on configuration you can override here.
}; |
So this throws when you have a dev dependency and eslint thinks it's not a dev dependency I'm pretty sure, so you'll have to manually mark that file as being dev only |
Thanks for replying, I will see if I can somehow mark it. I have absolutely zero JS/Ember skills but I do wonder why this is being done this way (and if I am really the first one encountering this). There's a whole thread advertising against it here mysticatea/eslint-plugin-node#47 but if this is the way to go I will try to add a note to the docs. Some quotes:
|
@pzuraq not the first I see. Seems mr. @elwayman02 had the same, he simply disabled it. https://github.com/elwayman02/ember-interactivity/blob/master/config/addon-docs.js Would this be welcomed as a PR? |
@bravo-kernel you have to add your "/config/addon-docs.js" to the ".npmignore". @pzuraq I think it's a job for blueprint? |
Wrong button, totally works. Do you folk want me to close the ticket? |
@ro0gr I agree that adding it to the |
Any ideas what could be causing this.
When running
yarn run lint:js
in my addon, eslint throws the following error on/config/addon-docs.js
:The text was updated successfully, but these errors were encountered: