-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
build: use stylelint #1836
base: gh-pages
Are you sure you want to change the base?
build: use stylelint #1836
Conversation
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3caad8c
to
3542b46
Compare
'no-descending-specificity': null, | ||
// Disables the Level-4 Media Queries; Since they're more exotic and less known | ||
'media-feature-range-notation': 'prefix', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding following plugins
https://www.npmjs.com/package/stylelint-high-performance-animation
https://www.npmjs.com/package/stylelint-declaration-block-no-ignored-properties
Also plugin "plugin/use-defensive-css": [true, { "severity": "warning" , "accidental-hover": true, "background-repeat": true }] is useful in our code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, that will help us maintain better CSS in this repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, can we also implement a commit lint along with style lint to maintain a consistent commit message format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit lint not yet, there's no consensus on that since there are limitations in the configuration (see expressjs/discussions#293 (comment), which mentions part of that, and I'm sure there are more issues and PRs that have tried to implement it).
Step by step.
Next week, I will look into integrating the suggestions and merging this. |
I would like to propose using Stylelint to have a linter for CSS. This would be part of #1596.
What do you think, @expressjs/docs-wg, @ShubhamOulkar, @ipreencekmr?