@hint/connector-local
hint local connector
Last updated 4 years ago by vidorteg .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hint/connector-local 
SYNC missed versions from official npm registry.

Local (@hint/connector-local)

A local connector to analyze the local files in your project with webhint.

Installation

This package is installed automatically when adding webhint to your project so running the following is enough:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {
        "name": "local"
    },
    ...
}

Options

local allows you to configure the following:

  • pattern: Add or ignore files defined in the pattern. By default the local connector will use the following pattern ['**', '!.git/**']. This doesn't apply if you are targeting just a file or if you are using the options content.
  • watch: Run webhint in watch mode. Watch files and trigger the analysis on changes.
{
    "connector": {
        "name": "local",
        "options": {
            "pattern": ["**", "!.git/**"],
            "watch": false
        }
    },
    ...
}

In addition, the local connector accept a new parameter in the method collect that allow you to pass the content to analyze as an string. To use that property, you need to call to the executeOn method in the engine with the content to analyze.

engine.executeOn(url, {content: '{{your content}}'});

Further Reading

Current Tags

  • 3.2.24                                ...           latest (4 years ago)

50 Versions

  • 3.2.24                                ...           4 years ago
  • 3.2.23                                ...           4 years ago
  • 3.2.22                                ...           4 years ago
  • 3.2.21                                ...           4 years ago
  • 3.2.20                                ...           4 years ago
  • 3.2.19                                ...           4 years ago
  • 3.2.18                                ...           4 years ago
  • 3.2.17                                ...           4 years ago
  • 3.2.16                                ...           4 years ago
  • 3.2.15                                ...           4 years ago
  • 3.2.14                                ...           4 years ago
  • 3.2.13                                ...           4 years ago
  • 3.2.12                                ...           4 years ago
  • 3.2.11                                ...           5 years ago
  • 3.2.10                                ...           5 years ago
  • 3.2.9                                ...           5 years ago
  • 3.2.8                                ...           5 years ago
  • 3.2.7                                ...           6 years ago
  • 3.2.6                                ...           6 years ago
  • 3.2.5                                ...           6 years ago
  • 3.2.4                                ...           6 years ago
  • 3.2.3                                ...           6 years ago
  • 3.2.2                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.10                                ...           6 years ago
  • 3.1.9                                ...           7 years ago
  • 3.1.8                                ...           7 years ago
  • 3.1.7                                ...           7 years ago
  • 3.1.6                                ...           7 years ago
  • 3.1.5                                ...           7 years ago
  • 3.1.4                                ...           7 years ago
  • 3.1.3                                ...           7 years ago
  • 3.1.2                                ...           7 years ago
  • 3.1.1                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.2                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.0-beta.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (8)
Dev Dependencies (20)

Copyright 2013 - present © cnpmjs.org | Home |