From 7765fc4f3f7e37dc1e9c0528e17d0d4f9973e58d Mon Sep 17 00:00:00 2001 From: Kevin Partington Date: Thu, 12 Apr 2018 22:25:15 -0500 Subject: [PATCH] Upgrade: ajv@^6.0.1, still using json schema draft 04 (#9856) * Upgrade: ajv@^6.0.1, still using json schema draft 04 * Upgrade: table@^4.0.3 (resolves peer dep warning) * Chore: Using schemaId: "auto" instead of "id" This retains compatibility with json schema draft-04 as well as draft-06 and draft-07. Previous setting unintentionally restricted compatibility to draft-04. --- lib/util/ajv.js | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/util/ajv.js b/lib/util/ajv.js index f9e8b985356..285176da87d 100644 --- a/lib/util/ajv.js +++ b/lib/util/ajv.js @@ -19,7 +19,8 @@ const ajv = new Ajv({ meta: false, validateSchema: false, missingRefs: "ignore", - verbose: true + verbose: true, + schemaId: "auto" }); ajv.addMetaSchema(metaSchema); diff --git a/package.json b/package.json index 5b88af0c1a8..643e047a10e 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "homepage": "https://eslint.org", "bugs": "https://github.com/eslint/eslint/issues/", "dependencies": { - "ajv": "^5.3.0", + "ajv": "^6.0.1", "babel-code-frame": "^6.26.0", "chalk": "^2.1.0", "concat-stream": "^1.6.2", @@ -70,7 +70,7 @@ "semver": "^5.5.0", "strip-ansi": "^4.0.0", "strip-json-comments": "^2.0.1", - "table": "4.0.2", + "table": "^4.0.3", "text-table": "^0.2.0" }, "devDependencies": {