@hint/connector-local v3.2.28
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-devTo 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 thelocalconnector will use the following pattern['**', '!.git/**']. This doesn't apply if you are targeting just a file or if you are using the optionscontent.watch: Runwebhintin 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
1 year ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago