-
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.
tools: update ESLint to version 2.1.0
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new features but this change attempts to be minimal in its changes. However, some things could not be avoided reasonably. ESLint 2.1.0 found a few lint issues that ESLing 1.x missed with template strings that did not take advantage of any features of template strings, and `let` declarations where `const` sufficed. Additionally, ESLint 2.1.0 removes some granularity around enabling ES6 features. Some features (e.g., spread operator) that had been turned off in our configuration for ESLint 1.x are now permitted. PR-URL: #5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
- Loading branch information
Showing
2,897 changed files
with
109,743 additions
and
122,855 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 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 CLIEngineOptions. | ||
* @author Ian VanSchooten | ||
* @copyright 2016 Ian VanSchooten. All rights reserved. | ||
* See LICENSE in root directory for full license. | ||
*/ | ||
|
||
"use strict"; | ||
|
||
var DEFAULT_PARSER = require("../conf/eslint.json").parser; | ||
|
||
module.exports = { | ||
configFile: null, | ||
baseConfig: false, | ||
rulePaths: [], | ||
useEslintrc: true, | ||
envs: [], | ||
globals: [], | ||
rules: {}, | ||
extensions: [".js"], | ||
ignore: true, | ||
ignorePath: null, | ||
parser: DEFAULT_PARSER, | ||
cache: false, | ||
// in order to honor the cacheFile option if specified | ||
// this option should not have a default value otherwise | ||
// it will always be used | ||
cacheLocation: "", | ||
cacheFile: ".eslintcache", | ||
fix: false, | ||
allowInlineConfig: true, | ||
cwd: process.cwd() | ||
}; |
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.