Refactor and cleanup CSS classes
This commit is contained in:
parent
01607ff10f
commit
1f718887ca
9 changed files with 129 additions and 46 deletions
31
scripts/lint.cks
Normal file
31
scripts/lint.cks
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
:prefixed {
|
||||
Level: error;
|
||||
diagnostic: "Avoid prefixed properties";
|
||||
}
|
||||
|
||||
style-value[name="color"]:not(:computed) {
|
||||
level: error;
|
||||
diagnostic: "Avoid color literals";
|
||||
}
|
||||
|
||||
declaration:important {
|
||||
level: error;
|
||||
diagnostic: "Avoid !important";
|
||||
}
|
||||
|
||||
declaration:unknown {
|
||||
level: error;
|
||||
diagnostic: "Unknown property";
|
||||
}
|
||||
|
||||
declaration:empty {
|
||||
level: error;
|
||||
diagnostic: "Empty ruleset";
|
||||
}
|
||||
|
||||
@stat --total-size { type: bytes; }
|
||||
:root { collect: --total-size; }
|
||||
|
||||
/*
|
||||
vi: ft=css
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue