1
1
mirror of https://github.com/primer/css.git synced 2024-09-11 16:36:07 +03:00

Update linting.md (#2210)

This commit is contained in:
John Bohannon 2022-08-19 13:55:27 -04:00 committed by GitHub
parent 4afbb38bc7
commit 7fd2adf6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ npm install -g stylelint
Whether you work on `github/github` or not, it's useful to see lint errors locally. The easiest way to lint your code is to install a [plugin](#plugins) in your workflow. If you prefer to run stylelint manually, pass it a glob pattern of the files you want to lint. If you work on `github/github`, you can run stylelint from the command line:
```
bin/stylelint "app/assets/stylesheets/**/*.scss" --syntax scss
bin/stylelint "app/assets/stylesheets/**/*.scss"
```
For more advanced usage, we recommend reading the [stylelint user guide](http://stylelint.io/user-guide/) and checking out our [primer stylelint configuration](https://github.com/primer/stylelint-config).