SASS (@hint/parser-sass
)
The SASS
parser is built on top of PostCSS so hints can
analyze SASS
and SCSS
files. It emits the same events as
@hint/parser-css
so existing hints targeting CSS
files will work
without modification.
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc
configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
...
},
"parsers": ["sass"],
...
}
Note: The recommended way of running webhint is as a devDependency
of
your project.
Events emitted
This parser
emits the following events:
Limitations
This parser is not fault-tolerant (unlike @hint/parser-css
) so only
well-formed files will be parsed.