3.0.39 • Published 11 months ago

@hint/parser-css v3.0.39

Weekly downloads
4,374
License
Apache-2.0
Repository
github
Last release
11 months ago

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.
3.0.39

11 months ago

3.0.38

1 year ago

3.0.37

1 year 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

2 years ago

3.0.30

2 years ago

3.0.29

2 years ago

3.0.27

3 years ago

3.0.28

2 years ago

3.0.26

3 years ago

3.0.25

3 years ago

3.0.24

3 years ago

3.0.23

3 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

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 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

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 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