-
Notifications
You must be signed in to change notification settings - Fork 213
lint
command, eslint and additional linters
#612
Comments
You could re-declare the const { lint } = neutrino.commands;
neutrino.register('lint', (...args) => {
lint(...args);
// do your thing
}); |
👍 I'll try it! |
So I tried your suggestion and it seemed things were getting called recursively (getting Maximum call stack size exceeded). |
Could you share the code for it so I can try it out? |
I think it would be nice to figure this out for 9.x. It seems to me that the Thoughts @mozilla-neutrino/core-contributors? |
@timkelty Do you mean having a command category ( |
@edmorley that's what I was getting at, and it might be nice, but I'm not sure how helpful it would be. I think the most immediate clarification would be to rename the |
After #852 this issue no longer exists, since there is no |
Looking for advice on the best way to add a linters for additional resource types, (e.g.
stylelint
,htmllint
).@neutrinojs/eslint
registers tasks:lint
andeslintrc
.When factoring in linters for additional resource types, this can get confusing.
Should the
lint
command be renamed toeslint
?Or - is there some way to register additional calls to the
lint
command?Ideally
lint
would calleslint
,stylelint
, or any other middlwares that have somehow registered lint commands.The text was updated successfully, but these errors were encountered: