Customized version of CSSLint
It contains original CSSLint, together with customized parser-lib
- Implied support for CSS variables syntax
- Added additional rules, that help maintain desired whitespace conventions
- Allow '\9' IE<=8 hacks
$ npm install csslint-next
List of additional rules implemented within this package.
Require end of line (\n
- LINE FEED) character at end of file
Require strictly unix end of line (\n
- LINE FEED) characters, any other end of lines (specifically: \r
- CARRIAGE RETURN) are reported as errors
Do not allow more than two empty lines in a row
Expect indentation with tabs. It will report on any space characters at begin of line, and mixed tabs and spaces.
Disallow whitespace characters at end of line
$ npm test