@hint/parser-sass
webhint parser needed to analyze SASS and SCSS files
Last updated a year ago by vidorteg .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @hint/parser-sass 
SYNC missed versions from official npm registry.

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:

  • parse::start::css of type Event which contains the following information:

    • resource: the resource we are going to parse.
  • parse::end::css of type StyleParse which has the following information:

    • ast: a PostCSS Root object containing the AST. See the PostCSS walk* APIs for help navigating the AST.
    • code: a string containing the raw stylesheet source code.
    • element: an HTMLElement reference if the source was inline in HTML; null otherwise.
    • resource: the parsed resource. If the CSS is in a style tag and not a file, the value will refer to the HTML document containing the stylesheet.

Limitations

This parser is not fault-tolerant (unlike @hint/parser-css) so only well-formed files will be parsed.

Current Tags

  • 1.0.31                                ...           latest (a year ago)

32 Versions

  • 1.0.31                                ...           a year ago
  • 1.0.30                                ...           2 years ago
  • 1.0.29                                ...           2 years ago
  • 1.0.28                                ...           2 years ago
  • 1.0.27                                ...           2 years ago
  • 1.0.26                                ...           2 years ago
  • 1.0.25                                ...           2 years ago
  • 1.0.24                                ...           2 years ago
  • 1.0.23                                ...           3 years ago
  • 1.0.22                                ...           3 years ago
  • 1.0.21                                ...           3 years ago
  • 1.0.20                                ...           3 years ago
  • 1.0.19                                ...           3 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           4 years ago
  • 1.0.15                                ...           4 years ago
  • 1.0.14                                ...           4 years ago
  • 1.0.13                                ...           4 years ago
  • 1.0.12                                ...           4 years ago
  • 1.0.11                                ...           4 years ago
  • 1.0.10                                ...           5 years ago
  • 1.0.9                                ...           5 years ago
  • 1.0.8                                ...           5 years ago
  • 1.0.7                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (19)

© 2010 - cnpmjs.org x YWFE | Home | YWFE