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 ```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"],

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

View File

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

View File

@ -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.",

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": [], "urls": [],
"files": [] "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" "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"], "files": ["./index.html"],
"severities": [] "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"], "files": ["./index.html"],
"severities": ["errors-invalid"] "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" "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"] "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"] "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"], "files": ["./build/index.html"],
"severities": ["info", "warning", "error"] "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"] "files": ["./build/index.html", "./build/about.html"]
} }