Skip to content
Permalink
Browse files

Update: Allow $schema in config (#12612)

  • Loading branch information
yordis authored and kaicataldo committed Dec 19, 2019
1 parent acc0e47 commit 1600648d2880ffb1e9e414b31ff0f66ead7167f9
Showing with 2 additions and 0 deletions.
  1. +1 −0 conf/config-schema.js
  2. +1 −0 tests/lib/shared/config-validator.js
@@ -6,6 +6,7 @@
"use strict";

const baseConfigProperties = {
$schema: { type: "string" },
env: { type: "object" },
extends: { $ref: "#/definitions/stringOrStrings" },
globals: { type: "object" },
@@ -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",

0 comments on commit 1600648

Please sign in to comment.
You can’t perform that action at this time.