Commit c972e1a
committed
Install referenced schema in "eslint:validate" task
The "eslint:validate" task validates the repository's ESLint configuration file against its JSON schema to catch any
problems with its data format.
In order to avoid duplication of content, JSON schemas may reference other schemas via the `$ref` keyword. The
ESLint configuration file schema was recently updated to share resources with a separate ESLint plugins configuration
schema, which caused the validation to start failing:
schema /tmp/eslintrc-schema-usLlcKrt8g.json is invalid
error: can't resolve reference https://json.schemastore.org/partial-eslint-plugins.json from id https://json.schemastore.org/eslintrc.json#
task: Failed to run task "eslint:validate": exit status 1
The solution is to configure the task to download that schema as well and also to provide its path to the avj-cli
validator via a `-r` flag.1 parent cc6f87c commit c972e1a
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
406 | 410 | | |
407 | 411 | | |
408 | 412 | | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
413 | 418 | | |
| 419 | + | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| |||
0 commit comments