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
feat(linting): Improve sass linting using stylelint and a custom formatter #1359
Conversation
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. Could you add test coverage and jsdoc along with it?
sass-msg-formatter.js
Outdated
/* | ||
* createCustomMessage: returns a custom message with a link to the carbon documentation depending on what the error is | ||
*/ | ||
function createCustomMessage(text) { |
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.
could you add test coverage for this?
also could you add jsdocs for the param?
Deploy preview for carbon-addons-iot-react ready! Built with commit 82bfd2c https://deploy-preview-1359--carbon-addons-iot-react.netlify.app |
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.
It looks like there are two files here - sass-msg-formatter.js
and sassMsgFormatter.js
. Should there only be one? I don't see any usages of sass-msg-formatter.js
Instead of being at the root folder location, let's put these formatter config/js files in a new folder at ./config/stylelint
Feedback was implemented in a separate file
🎉 This PR is included in version 2.101.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #527
Summary
Change List (commits, features, bugs, etc)
Acceptance Test (how to verify the PR)
yarn lint
in the main project folder