mirror of
https://github.com/theoludwig/html-w3c-validator.git
synced 2024-12-08 00:45:37 +01:00
feat: json $schema locally => ./node_modules/html-w3c-validator/schema/schema.json
This commit is contained in:
parent
58d392d320
commit
fbe3830db7
@ -66,7 +66,7 @@ npm install --save-dev html-w3c-validator start-server-and-test
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "./node_modules/html-w3c-validator/schema/schema.json",
|
||||||
|
|
||||||
// URLs to validate.
|
// URLs to validate.
|
||||||
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],
|
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "./node_modules/html-w3c-validator/schema/schema.json",
|
||||||
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],
|
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],
|
||||||
"files": ["./build/index.html", "./build/about.html"]
|
"files": ["./build/index.html", "./build/about.html"]
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
"bin": "build/index.js",
|
"bin": "build/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"build",
|
"build",
|
||||||
|
"./schema/schema.json",
|
||||||
"!**/*.test.js",
|
"!**/*.test.js",
|
||||||
"!**/*.map"
|
"!**/*.map"
|
||||||
],
|
],
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json",
|
"$id": "html-w3c-validator://config/schema.json",
|
||||||
"title": "html-w3c-validator configuration schema",
|
"title": "html-w3c-validator configuration schema",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$schema": {
|
"$schema": {
|
||||||
"description": "JSON Schema URI",
|
"description": "JSON Schema",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"format": "uri",
|
|
||||||
"default": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json"
|
|
||||||
},
|
},
|
||||||
"urls": {
|
"urls": {
|
||||||
"description": "URLs to validate.",
|
"description": "URLs to validate.",
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"urls": [],
|
"urls": [],
|
||||||
"files": []
|
"files": []
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": "Invalid"
|
"files": "Invalid"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./index.html"],
|
"files": ["./index.html"],
|
||||||
"severities": []
|
"severities": []
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./index.html"],
|
"files": ["./index.html"],
|
||||||
"severities": ["errors-invalid"]
|
"severities": ["errors-invalid"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"urls": "Invalid"
|
"urls": "Invalid"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./index.html"]
|
"files": ["./index.html"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./build/index.html", "./build/about.html"]
|
"files": ["./build/index.html", "./build/about.html"]
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./build/index.html"],
|
"files": ["./build/index.html"],
|
||||||
"severities": ["info", "warning", "error"]
|
"severities": ["info", "warning", "error"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/develop/schema/html-w3c-validatorrc-schema.json",
|
"$schema": "../../../../schema/schema.json",
|
||||||
"files": ["./build/index.html", "./build/about.html"]
|
"files": ["./build/index.html", "./build/about.html"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user