-
Notifications
You must be signed in to change notification settings - Fork 216
Check scss #478
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
Check scss #478
Conversation
pinging someone randomly: @pietroalbini |
The formatted file looks great, but I'm not sure if it's worth adding a custom linter just for scss files. |
Considering how bad the file was before I fix the formatting in 96f00d9, I'd prefer to keep things under surveillance. The check itself is really quick to run and pretty simple making it easy to maintain. |
Can we use an existing formatter like prettier? I'd prefer not rolling out our own. |
I see two reasons for this:
Again, not sure to really understand your issue... :-/ |
There are a few problems I see with any custom linter (including
Of course fixing those problems in a custom linter requires a lot more work than what's worth, while prettier or similar just works. The JS environment is already setup in CI, and prettier is actually nice since it's just a single package without dependencies (so no npm hell). |
I guess it can be debated but for me it's just formatting issue, not readability so completely secondary.
Considering I'm the one who wrote it, I don't mind keeping it up-to-date.
Well, that's the whole point of a linter. What you're talking about is a formatter and is generally a lot bigger.
It still requires to have |
I just think if we want to do this we should do it the proper way, without custom scripts. |
4e4c5f3
to
ae28535
Compare
Ok, just kept the scss cleanup. :'( |
I ended the scss file cleanup. To prevent having to do it once again, I added a script to check that the file continues to follow a precise format.
I also added this check into the github actions (curious to see if python 3 is already installed there or not...).
I used this script to lint the scss file: