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

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-dev

To 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::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.

Current Tags

  • 3.0.39                                ...           latest (a year ago)

49 Versions

  • 3.0.39                                ...           a year ago
  • 3.0.38                                ...           2 years ago
  • 3.0.37                                ...           2 years ago
  • 3.0.36                                ...           2 years ago
  • 3.0.35                                ...           2 years ago
  • 3.0.34                                ...           2 years ago
  • 3.0.33                                ...           2 years ago
  • 3.0.32                                ...           2 years ago
  • 3.0.31                                ...           3 years ago
  • 3.0.30                                ...           3 years ago
  • 3.0.29                                ...           3 years ago
  • 3.0.28                                ...           3 years ago
  • 3.0.27                                ...           3 years ago
  • 3.0.26                                ...           3 years ago
  • 3.0.25                                ...           3 years ago
  • 3.0.24                                ...           4 years ago
  • 3.0.23                                ...           4 years ago
  • 3.0.22                                ...           4 years ago
  • 3.0.21                                ...           4 years ago
  • 3.0.20                                ...           4 years ago
  • 3.0.19                                ...           4 years ago
  • 3.0.18                                ...           5 years ago
  • 3.0.17                                ...           5 years ago
  • 3.0.16                                ...           5 years ago
  • 3.0.15                                ...           5 years ago
  • 3.0.14                                ...           5 years ago
  • 3.0.13                                ...           5 years ago
  • 3.0.12                                ...           5 years ago
  • 3.0.11                                ...           5 years ago
  • 3.0.10                                ...           5 years ago
  • 3.0.9                                ...           5 years ago
  • 3.0.8                                ...           5 years ago
  • 3.0.7                                ...           5 years ago
  • 3.0.6                                ...           5 years ago
  • 3.0.5                                ...           5 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (18)

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