-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint to 4.1.0. This fixes a bug that previously prevented us from using the new and stricter indentation checking. Refs: eslint/eslint#8721 PR-URL: #13895 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
- Loading branch information
Showing
242 changed files
with
10,297 additions
and
10,789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/** | ||
* @fileoverview Defines a schema for configs. | ||
* @author Sylvan Mably | ||
*/ | ||
|
||
"use strict"; | ||
|
||
const baseConfigProperties = { | ||
env: { type: "object" }, | ||
globals: { type: "object" }, | ||
parser: { type: ["string", "null"] }, | ||
parserOptions: { type: "object" }, | ||
plugins: { type: "array" }, | ||
rules: { type: "object" }, | ||
settings: { type: "object" } | ||
}; | ||
|
||
const overrideProperties = Object.assign( | ||
{}, | ||
baseConfigProperties, | ||
{ | ||
files: { | ||
oneOf: [ | ||
{ type: "string" }, | ||
{ | ||
type: "array", | ||
items: { type: "string" }, | ||
minItems: 1 | ||
} | ||
] | ||
}, | ||
excludedFiles: { | ||
oneOf: [ | ||
{ type: "string" }, | ||
{ | ||
type: "array", | ||
items: { type: "string" } | ||
} | ||
] | ||
} | ||
} | ||
); | ||
|
||
const topLevelConfigProperties = Object.assign( | ||
{}, | ||
baseConfigProperties, | ||
{ | ||
extends: { type: ["string", "array"] }, | ||
root: { type: "boolean" }, | ||
overrides: { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: overrideProperties, | ||
required: ["files"], | ||
additionalProperties: false | ||
} | ||
} | ||
} | ||
); | ||
|
||
const configSchema = { | ||
type: "object", | ||
properties: topLevelConfigProperties, | ||
additionalProperties: false | ||
}; | ||
|
||
module.exports = configSchema; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.