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

Extract Stylelint configuration for publish to NPM #5689

Merged
merged 6 commits into from
Dec 9, 2021

Conversation

aduth
Copy link
Member

@aduth aduth commented Dec 8, 2021

Why: So that we can use the same configuration across our projects (e.g. 18f/identity-style-guide).

**Why**: So that we can use the same configuration across our projects (e.g. 18f/identity-style-guide).
@aduth aduth requested a review from mitchellhenke December 8, 2021 14:43
@aduth
Copy link
Member Author

aduth commented Dec 8, 2021

When testing this out in identity-style-guide and bumping into some errors related to rules we were overriding from USWDS, I noticed that USWDS is using the Prettier extension for their Stylelint configuration. I wonder if this might be something we'd want to look into, both because we're already using Prettier for JavaScript and YAML, and because it would help us more easily keep in sync with USWDS styling in places like identity-style-guide.

@aduth
Copy link
Member Author

aduth commented Dec 8, 2021

I gave it a shot in d4a0219. Was quite straight-forward, with the main differences being:

  • Always having leading zeros on decimal numbers
  • Style block bodies are always broken onto new line
  • Quote styling following our Prettier configuration (single-quotes)

Let me know if you have any concerns @mitchellhenke , but I'm feeling quite good about it.

@mitchellhenke
Copy link
Contributor

Looks good to me! 👍🏼

**Why**: Because they sometimes can't coexist
@aduth aduth merged commit ce93fed into main Dec 9, 2021
@aduth aduth deleted the aduth-publish-stylelint-config branch December 9, 2021 13:53
@aduth
Copy link
Member Author

aduth commented Dec 9, 2021

aduth added a commit to 18F/identity-design-system that referenced this pull request Dec 9, 2021
Related: 18F/identity-idp#5689

**Why:** So that we can use a common standard ruleset across all repositories where Sass is used.
aduth added a commit to 18F/identity-design-system that referenced this pull request Dec 9, 2021
Related: 18F/identity-idp#5689

**Why:** So that we can use a common standard ruleset across all repositories where Sass is used.
aduth added a commit to 18F/identity-design-system that referenced this pull request Dec 9, 2021
* Use login.gov shared Stylelint configuration

Related: 18F/identity-idp#5689

**Why:** So that we can use a common standard ruleset across all repositories where Sass is used.

* Fix dependency resolution for stylelint-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants