Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1600648

Browse filesBrowse files
yordisKai Cataldo
authored andcommitted
Update: Allow $schema in config (#12612)
1 parent acc0e47 commit 1600648
Copy full SHA for 1600648

File tree

Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎conf/config-schema.js‎

Copy file name to clipboardExpand all lines: conf/config-schema.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"use strict";
77

88
const baseConfigProperties = {
9+
$schema: { type: "string" },
910
env: { type: "object" },
1011
extends: { $ref: "#/definitions/stringOrStrings" },
1112
globals: { type: "object" },
Collapse file

‎tests/lib/shared/config-validator.js‎

Copy file name to clipboardExpand all lines: tests/lib/shared/config-validator.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ describe("Validator", () => {
114114
it("should do nothing with a valid eslint config", () => {
115115
validator.validate(
116116
{
117+
$schema: "http://json.schemastore.org/eslintrc",
117118
root: true,
118119
globals: { globalFoo: "readonly" },
119120
parser: "parserFoo",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.