-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint and configuration to version 4.0.0. Backport-PR-URL: #14340 PR-URL: #13645 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: James M Snell <[email protected]>
- Loading branch information
1 parent
bb1b06a
commit 4ffe804
Showing
1,031 changed files
with
36,736 additions
and
42,098 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
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
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,15 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"root": { "type": "boolean" }, | ||
"globals": { "type": ["object"] }, | ||
"parser": { "type": ["string", "null"] }, | ||
"env": { "type": "object" }, | ||
"plugins": { "type": ["array"] }, | ||
"settings": { "type": "object" }, | ||
"extends": { "type": ["string", "array"] }, | ||
"rules": { "type": "object" }, | ||
"parserOptions": { "type": "object" } | ||
}, | ||
"additionalProperties": false | ||
} |
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,33 @@ | ||
/** | ||
* @fileoverview Default config options | ||
* @author Teddy Katz | ||
*/ | ||
|
||
"use strict"; | ||
|
||
/** | ||
* Freezes an object and all its nested properties | ||
* @param {Object} obj The object to deeply freeze | ||
* @returns {Object} `obj` after freezing it | ||
*/ | ||
function deepFreeze(obj) { | ||
if (obj === null || typeof obj !== "object") { | ||
return obj; | ||
} | ||
|
||
Object.keys(obj).map(key => obj[key]).forEach(deepFreeze); | ||
return Object.freeze(obj); | ||
} | ||
|
||
module.exports = deepFreeze({ | ||
env: {}, | ||
globals: {}, | ||
rules: {}, | ||
settings: {}, | ||
parser: "espree", | ||
parserOptions: { | ||
ecmaVersion: 5, | ||
sourceType: "script", | ||
ecmaFeatures: {} | ||
} | ||
}); |
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.