Stylelint shareable configuration for Login.gov CSS/SASS standards.
These configurations largely inherit from the TTS CSS coding standards, pre-bundled with recommended rulesets and extended to provide support for Login.gov-specific implementation choices.
Install using NPM or Yarn. Stylelint and Prettier are required as peer dependencies and should be installed if it is not already.
npm install --save-dev @18f/identity-stylelint-config stylelint prettier
Create a .stylelintrc.json
configuration file in the root of your project and extend this configuration:
{
"extends": "@18f/identity-stylelint-config"
}
When you next run stylelint, it will apply the configured rules.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest.