Skip to content

Commit

Permalink
Update: Allow $schema in config (#12612)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis authored and kaicataldo committed Dec 19, 2019
1 parent acc0e47 commit 1600648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config-schema.js
Expand Up @@ -6,6 +6,7 @@
"use strict";

const baseConfigProperties = {
$schema: { type: "string" },
env: { type: "object" },
extends: { $ref: "#/definitions/stringOrStrings" },
globals: { type: "object" },
Expand Down
1 change: 1 addition & 0 deletions tests/lib/shared/config-validator.js
Expand Up @@ -114,6 +114,7 @@ describe("Validator", () => {
it("should do nothing with a valid eslint config", () => {
validator.validate(
{
$schema: "http://json.schemastore.org/eslintrc",
root: true,
globals: { globalFoo: "readonly" },
parser: "parserFoo",
Expand Down

0 comments on commit 1600648

Please sign in to comment.