-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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. PR-URL: #13645 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
Showing
1,093 changed files
with
39,420 additions
and
36,822 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.