@hint/parser-css v3.0.39
CSS (@hint/parser-css)
The CSS parser is built on top of PostCSS so hints can
analyze CSS files.
This package is installed automatically by webhint:
npm install hint --save-devTo use it, activate it via the .hintrc configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
...
},
"parsers": ["css"],
...
}Note: The recommended way of running webhint is as a devDependency of
your project.
Events emitted
This parser emits the following events:
parse::start::cssof typeEventwhich contains the following information:resource: the resource we are going to parse.
parse::end::cssof typeStyleParsewhich has the following information:ast: a PostCSSRootobject containing the AST. See the PostCSSwalk*APIs for help navigating the AST.code: a string containing the raw stylesheet source code.element: anHTMLElementreference if the source was inline in HTML;nullotherwise.resource: the parsed resource. If the CSS is in astyle tagand not a file, the value will refer to the HTML document containing the stylesheet.
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago