mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
28 lines
590 B
Markdown
28 lines
590 B
Markdown
|
# csslint
|
||
|
|
||
|
> A linter for CSS code.
|
||
|
|
||
|
- Lint a single CSS file:
|
||
|
|
||
|
`csslint {{file.css}}`
|
||
|
|
||
|
- Lint multiple CSS files:
|
||
|
|
||
|
`csslint {{file1.css}} {{file2.css}} {{file3.css}}`
|
||
|
|
||
|
- List all possible style rules:
|
||
|
|
||
|
`csslint --list-rules`
|
||
|
|
||
|
- Specify certain rules as errors (which result in a non-zero exit code):
|
||
|
|
||
|
`csslint --errors={{errors,universal-selector,imports}} {{file.css}}`
|
||
|
|
||
|
- Specify certain rules as warnings:
|
||
|
|
||
|
`csslint --warnings={{box-sizing,selector-max,floats}} {{file.css}}`
|
||
|
|
||
|
- Specify certain rules to completely ignore:
|
||
|
|
||
|
`csslint --ignore={{ids,rules-count,shorthand}} {{file.css}}`
|