Skip to content

Commit 689016f

Browse files
committed
add schema descriptions, comments
1 parent a115508 commit 689016f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343

4444
## Options
4545

46-
You can pass select [html-validate.org](https://html-validate.org/) cli options.
46+
You can pass select [html-validate.org cli options](https://html-validate.org/usage/cli.html).
4747

4848
### `path`
4949

index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const schema = require('./schema.json');
44

55
class HTMLValidatePlugin {
66
constructor(options = {}) {
7-
// validate the options being passed through the plugin options
7+
// validate options being passed through the plugin
88
validateOptions(schema, options, 'HTMLValidatePlugin');
99

1010
Object.assign(
@@ -62,10 +62,7 @@ class HTMLValidatePlugin {
6262
compiler.hooks.done.tap('HTMLValidatePlugin', () => {
6363
// set up cli payload
6464
const userParams = `${this.path}.${this.getExtensions()} ${this.getConfig()}`;
65-
const spawnParams = {
66-
shell: true,
67-
/*inherit color output */ stdio: 'inherit',
68-
};
65+
const spawnParams = { shell: true, stdio: 'inherit' };
6966

7067
this.runCliBasedOnScope(userParams, spawnParams);
7168
});

schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
"type": "object",
33
"properties": {
44
"path": {
5+
"description": "Specifies the directories/files for html-validate to search.",
56
"type": "string"
67
},
78
"extensions": {
9+
"description": "Specifies the file extensions to use when searching for files in directories.",
810
"type": "array"
911
},
1012
"config": {
13+
"description": "Specify a different configuration file.",
1114
"type": "string"
1215
},
1316
"global": {
17+
"description": "Specify the run context of html-validate.",
1418
"type": "boolean"
1519
}
1620
},

0 commit comments

Comments
 (0)