-
Notifications
You must be signed in to change notification settings - Fork 1
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
Consolidate JS apply and check whitelists #20
Comments
Oops, It looks like @varl changed the code under me while I was sleeping :-D I think this is still relevant though - the |
Haha, yeah I'm a sneak sometimes. 🐍 I saw the same thing... I think the The
https://github.com/dhis2/cli-style/blob/master/src/files.js#L19-L22
This is unfiltered because a user has manually passed in a list of files on the commandline... On the other hand ... Maybe we should filter this one as well.
This could be written a bit more cleverly so less of the internals of |
I've cleaned up the implementation a bit, it's more clear now. |
Nice! Approved and merged
…On Tue, Mar 5, 2019 at 9:50 AM Viktor Varland ***@***.***> wrote:
I've cleaned up the implementation a bit, it's more clear now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA52sM3g1Icfrp7pte8PLWciYSHVn5vYks5vTq5hgaJpZM4bfDv7>
.
|
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Currently there are two implementations of whitelisting, one in
files.js
which includes css and json files and one incheck.js
which does not. As such, the behavior ofd2-style js check
doesn't matchd2-style js apply
.These should probably both use the shared whitelist, likely excluding css and json files for now (though I think we should look into @ismay's stylelint suggestion in #17 - it can also support styled-jsx I believe).
The text was updated successfully, but these errors were encountered: