Pass options to broccoli-lint-eslint#118
Conversation
|
@michalsnik thanks for working on this. I do however believe that this might not be the best solution for the problem. The problem as you've found out is that |
|
Thanks for a reply @Turbo87. Right now due to this issue my projects' build on CircleCI doesn't pass and I can't deploy in proper manner. I could slightly modify files that are not being checked right now so the cache invalidation works and the build finally will pass, but I'm thinking if there is a way to clean the cache and force it to check all of my files once again without the need to modify them? |
|
I do think there's a good point here about the ability to define ESLint-specific options.
var app = new EmberApp(defaults, {
eslint: {
eslintOptions: {
.....
}
},
});and then, the only change for this PR would be: options: this.options.eslintOptions |
|
This may help with #150 |
|
I totally need this for #150 - can I help with this PR? |
|
Do you want me to update this PR regarding @BrianSipple suggestion @Turbo87? |
|
I'm a little worried about exposing the API of a second-level dependency directly. For solving #150 it seems that a |
|
How about #197 then? |
|
It would be really helpful to have this - either passing through the options, or just implementing them as options explicitly like in #197. In the meantime, is there any way to do this, hacky as it may be? With jsHint, I was able to do this:
const jsHint = require('broccoli-jshint');
jsHint.prototype.someOption = true; |
|
closing in favor of #197 |
|
@ctcpip what option do you want to pass through? |
|
@Turbo87 me specifically, |
|
but |
|
that's exactly what I want |
Hi,
I encountered a problem with eslint today:
I found out that there is a setting called
persistinbroccoli-lint-eslint.Funny thing, documentation says the default value is
false, but the code clearly shows otherwise. But straight to the point..In
broccoli-lint-eslintthere is:https://github.com/ember-cli/broccoli-lint-eslint/blob/bf627753313b0df664c2ef69f71833925d0cfe62/lib/index.js#L102
the
this.internalOptionscontains all the settings that are being passed throughember-cli-eslintin (https://github.com/ember-cli/ember-cli-eslint/blob/master/index.js#L32), unfortunatelyember-cli-eslintdoesn't passes settings fromember-cli-build.js.This is really simple PR, that makes sure the settings are passed to
broccoli-lint-eslintso users can leverage from using settings likepersistand so on like this:This PR also sort of a continuation of original Issue: #84
Looking forward to hearing from you :)