mirror of
				https://github.com/theoludwig/html-w3c-validator.git
				synced 2025-05-21 23:21:29 +02:00 
			
		
		
		
	feat: json $schema locally => ./node_modules/html-w3c-validator/schema/schema.json
				
					
				
			This commit is contained in:
		| @@ -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"], | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
| @@ -25,6 +25,7 @@ | ||||
|   "bin": "build/index.js", | ||||
|   "files": [ | ||||
|     "build", | ||||
|     "./schema/schema.json", | ||||
|     "!**/*.test.js", | ||||
|     "!**/*.map" | ||||
|   ], | ||||
|   | ||||
| @@ -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.", | ||||
| @@ -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": [] | ||||
| } | ||||
|   | ||||
| @@ -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" | ||||
| } | ||||
|   | ||||
| @@ -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": [] | ||||
| } | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
| @@ -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" | ||||
| } | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
| @@ -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"] | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user