1
1
mirror of https://github.com/theoludwig/html-w3c-validator.git synced 2024-11-09 22:08:12 +01:00

feat: json $schema locally => ./node_modules/html-w3c-validator/schema/schema.json

This commit is contained in:
Théo LUDWIG 2024-11-09 16:42:44 +01:00
parent 58d392d320
commit fbe3830db7
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
13 changed files with 16 additions and 17 deletions

View File

@ -66,7 +66,7 @@ npm install --save-dev html-w3c-validator start-server-and-test
```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": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],

View File

@ -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"],
"files": ["./build/index.html", "./build/about.html"]
}

View File

@ -25,6 +25,7 @@
"bin": "build/index.js",
"files": [
"build",
"./schema/schema.json",
"!**/*.test.js",
"!**/*.map"
],

View File

@ -1,14 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "html-w3c-validator://config/schema.json",
"title": "html-w3c-validator configuration schema",
"type": "object",
"properties": {
"$schema": {
"description": "JSON Schema URI",
"type": "string",
"format": "uri",
"default": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json"
"description": "JSON Schema",
"type": "string"
},
"urls": {
"description": "URLs to validate.",

View File

@ -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": [],
"files": []
}

View File

@ -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"
}

View File

@ -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"],
"severities": []
}

View File

@ -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"],
"severities": ["errors-invalid"]
}

View File

@ -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"
}

View File

@ -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"]
}

View File

@ -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"]
}

View File

@ -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"],
"severities": ["info", "warning", "error"]
}

View File

@ -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"]
}