Skip to content
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(stylelint): add stylelint-config-carbon #6170

Conversation

joshblack
Copy link
Contributor

@joshblack joshblack commented May 30, 2020

This PR adds in a new package called stylelint-config-carbon that has our stylelint configuration for the monorepo and for other projects in the carbon ecosystem.

It currently does not add listing styles to our CI check. Instead, we'll chip away at this over time and have lint-staged catch changes to be fixed on a per-file basis. When we get full coverage, we'll add stylelint to our CI check.

This PR adds in the package (moving from stylelint-config-elements), updates some dependencies for stylelint, adds in some new rules, and also fixes some stylelint issues in Sass files around the project.

Changelog

New

  • stylelint-config-carbon

Changed

  • Update some sass files based on stylelint rules

Removed

  • stylelint-config-elements

@joshblack
Copy link
Contributor Author

cc @jendowns if you have any recommendations!

@netlify
Copy link

netlify bot commented May 30, 2020

Deploy preview for carbon-elements ready!

Built with commit bfa6345

https://deploy-preview-6170--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented May 30, 2020

Deploy preview for carbon-components-react ready!

Built with commit bfa6345

https://deploy-preview-6170--carbon-components-react.netlify.app

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be interested in using this in carbon-addons-iot-react 👍

It would be helpful to know if there's a CLI command I can run to view our existing config/values and diff them with what's available here

@joshblack joshblack marked this pull request as ready for review July 1, 2020 18:46
@joshblack joshblack requested a review from a team as a code owner July 1, 2020 18:46
@ghost ghost requested review from andreancardona and emyarod July 1, 2020 18:46
@joshblack
Copy link
Contributor Author

@emyarod @andreancardona let me know if you have any questions about this PR!

@joshblack joshblack merged commit c022cdb into carbon-design-system:master Jul 7, 2020
@joshblack joshblack deleted the feat/add-stylelint-config-carbon branch July 7, 2020 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants