-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Switch to using @thoughtbot/stylelint-config #2492
Conversation
I need to fix GHA, but also when it does run, there's some linting failures as the rules seem to be slightly different and/or maybe broken. I can't tell. |
Over on the stylelint-config repo, I'm trying to bring that up to date and sort things out there … then I can come back to this. |
This has been a ten (10) day side quest and I can finally think about sorting out the rules which are now failing. |
566c1c9
to
2f446c7
Compare
In #2397, we're having trouble with ignoring directories using the existing `scss-lint` configuration on Hound. `scss-lint` has been deprecated for a while and we have another configuration based on thoughtbot guides, so this is a good fit. We use BEM style selectors in our CSS. So we add a custom rule, based on some prior work by @a-tokyo, but adjusted to fit in our JSON configuration file. In addition, we disable these rules as they don't make sense on Administrate: * Disable scss/dollar-variable-empty-line-before on variables * Disable function-no-unknown/no-global function names https://github.com/thoughtbot/stylelint-config sds/scss-lint@4ac76f9 humanmade/coding-standards#193 (comment) simonsmith/stylelint-selector-bem-pattern#23
9231448
to
cbd5c0d
Compare
I published Now this is ready to go. Hound keeps trying to lint, |
In adjusting the styles in thoughtbot#2492, we removed more specific selectors to pass linting rules. Unfortunately, this broke the situation where you have a checkbox input when editing a `Field::Boolean`. This adds them back in, in a linting happy way. Fixes thoughtbot#2511
In #2397, we're having trouble with ignoring directories using the existing
scss-lint
configuration on Hound.scss-lint
has been deprecated for a while and we have another configuration based on thoughtbot guides, so this is a good fit.We use BEM style selectors in our CSS. So we add a custom rule, based on some prior work by @a-tokyo, but adjusted to fit in our JSON configuration file.
In addition, we disable these rules as they don't make sense on Administrate:
https://github.com/thoughtbot/stylelint-config
sds/scss-lint@4ac76f9
humanmade/coding-standards#193 (comment)
simonsmith/stylelint-selector-bem-pattern#23