1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.pl/common/csslint.md

29 lines
670 B
Markdown
Raw Permalink Normal View History

2020-04-15 18:00:56 +02:00
# csslint
> Lintuj kod CSS.
2020-04-15 19:16:45 +02:00
> Więcej informacji: <https://github.com/CSSLint/csslint/wiki/Command-line-interface>.
2020-04-15 18:00:56 +02:00
- Lintuj pojedyńczy plik CSS:
2020-04-15 18:00:56 +02:00
2020-04-16 00:30:16 +02:00
`csslint {{plik.css}}`
2020-04-15 18:00:56 +02:00
- Lintuj wiele plików CSS:
2020-04-15 18:00:56 +02:00
`csslint {{plik1.css plik2.css ...}}`
2020-04-15 18:00:56 +02:00
2020-04-15 19:16:45 +02:00
- Wymień wszystkie możliwe reguły stylu:
2020-04-15 18:00:56 +02:00
`csslint --list-rules`
2020-04-15 19:16:45 +02:00
- Określ pewne reguły jako błędy (które powodują niezerowy kod wyjścia):
2020-04-15 18:00:56 +02:00
`csslint --errors={{errors,universal-selector,imports}} {{plik.css}}`
2020-04-15 18:00:56 +02:00
2020-04-15 19:16:45 +02:00
- Określ pewne reguły jako ostrzeżenia:
2020-04-15 18:00:56 +02:00
2020-04-16 00:30:16 +02:00
`csslint --warnings={{box-sizing,selector-max,floats}} {{plik.css}}`
2020-04-15 18:00:56 +02:00
- Ignoruj określone reguły:
2020-04-15 18:00:56 +02:00
2020-04-16 00:30:16 +02:00
`csslint --ignore={{ids,rules-count,shorthand}} {{plik.css}}`