@18f/identity-stylelint-config 中文文档教程
@18f/identity-stylelint-config
Login.gov CSS/SASS 标准的 Stylelint 可共享配置。
这些配置在很大程度上继承自 TTS CSS 编码标准,预先捆绑了推荐的规则集并扩展以提供对 Login.gov-具体实施选择。
Installation
使用 NPM 或 Yarn 安装。 Stylelint 和 Prettier 作为对等依赖项是必需的,应该安装如果还没有。
npm install --save-dev @18f/identity-stylelint-config stylelint prettier
Usage
在项目的根目录中创建一个 .stylelintrc.json
配置文件并扩展此配置:
{
"extends": "@18f/identity-stylelint-config"
}
当您接下来 运行 stylelint,它将应用配置的规则。
License
本项目在美国属于公共领域,通过 CC0 1.0 Universal public 放弃全球作品的版权和相关权利域奉献。
所有对该项目的贡献都将在 CC0 奉献精神下发布。 通过提交拉取请求或问题,您同意遵守此版权利益放弃。
@18f/identity-stylelint-config
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.
Installation
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
Usage
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.
License
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.