Bug 1298879 - Upgrade to ESLint 3.5.0 for faster linting. r=miker

--HG--
extra : amend_source : f9192046a1c22f631d6423ce4ffc6e4e0e11dfc1
This commit is contained in:
Philipp Kewisch 2016-09-20 10:27:03 +01:00
parent 17d545681a
commit a5e487b1ed
9 changed files with 94 additions and 108 deletions

View File

@ -1328,14 +1328,10 @@ CssPropertyInfo.prototype = {
*/
_refilterSelectors: function () {
let passId = ++this._cssLogic._passId;
let ruleCount = 0;
let iterator = function (selectorInfo) {
let cssRule = selectorInfo.selector.cssRule;
if (cssRule._passId != passId) {
if (cssRule.sheetAllowed) {
ruleCount++;
}
cssRule._passId = passId;
}
};

View File

@ -167,7 +167,7 @@ var Management = new class extends SchemaAPIManager {
super.registerSchemaAPI(namespace, "addon_parent", getAPI);
}
}
};
}();
// An extension page is an execution context for any extension content
// that runs in the chrome process. It's used for background pages

View File

@ -85,7 +85,7 @@ var apiManager = new class extends SchemaAPIManager {
super.registerSchemaAPI(namespace, envType, getAPI);
}
}
};
}();
// Represents a content script.
function Script(extension, options, deferred = PromiseUtils.defer()) {

View File

@ -223,7 +223,8 @@ IDService.prototype = {
// When that is available, we can remove this custom parser
var parsedEmail = this.parseEmail(aIdentity);
if (parsedEmail === null) {
return aCallback("Could not parse email: " + aIdentity);
aCallback("Could not parse email: " + aIdentity);
return;
}
log("_discoverIdentityProvider: identity:", aIdentity, "domain:", parsedEmail.domain);

View File

@ -256,34 +256,15 @@ module.exports = {
*/
getPermissiveConfig: function() {
return {
comment: true,
attachComment: true,
range: true,
loc: true,
tolerant: true,
comment: true,
attachComment: true,
ecmaVersion: 8,
sourceType: "script",
ecmaFeatures: {
arrowFunctions: true,
binaryLiterals: true,
blockBindings: true,
classes: true,
defaultParams: true,
destructuring: true,
forOf: true,
generators: true,
experimentalObjectRestSpread: true,
globalReturn: true,
modules: true,
objectLiteralComputedProperties: true,
objectLiteralDuplicateProperties: true,
objectLiteralShorthandMethods: true,
objectLiteralShorthandProperties: true,
octalLiterals: true,
regexUFlag: true,
regexYFlag: true,
restParams: true,
spread: true,
superInFunctions: true,
templateStrings: true,
unicodeCodePointEscapes: true,
}
};
},

View File

@ -1,6 +1,6 @@
{
"name": "eslint-plugin-mozilla",
"version": "0.2.0",
"version": "0.2.1",
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
"keywords": [
"eslint",
@ -16,9 +16,9 @@
"author": "Mike Ratcliffe",
"main": "lib/index.js",
"dependencies": {
"escope": "^3.2.0",
"espree": "^2.2.4",
"estraverse": "^4.1.1",
"escope": "^3.6.0",
"espree": "^3.2.0",
"estraverse": "^4.2.0",
"sax": "^1.1.4"
},
"engines": {

View File

@ -1,8 +1,8 @@
[
{
"size": 2213776,
"size": 2488329,
"visibility": "public",
"digest": "07b9662b873acc86870a5f92988211d5f2cd7399519c182c3f665deca18e8938caf19ff81ade9d8e0d7447e29e93aec2749624a645b1523d6980f7233b7bdf9b",
"digest": "d86fd40bc57597da8541eaf4ccf99e5bf3f91dd672eb1843ec339b2e1acd39e4bbc6b26d3e61316898962063ed70302222a9b41df3558bc6882965e108ed67fb",
"algorithm": "sha512",
"filename": "eslint.tar.gz"
}

View File

@ -2,14 +2,31 @@
"name": "mach-eslint",
"dependencies": {
"acorn": {
"version": "3.3.0",
"from": "acorn@>=3.1.0 <4.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz"
"version": "4.0.3",
"from": "acorn@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.3.tgz"
},
"acorn-jsx": {
"version": "3.0.1",
"from": "acorn-jsx@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz"
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz",
"dependencies": {
"acorn": {
"version": "3.3.0",
"from": "acorn@>=3.0.4 <4.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz"
}
}
},
"ajv": {
"version": "4.7.2",
"from": "ajv@>=4.7.0 <5.0.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-4.7.2.tgz"
},
"ajv-keywords": {
"version": "1.0.0",
"from": "ajv-keywords@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.0.0.tgz"
},
"ansi-escapes": {
"version": "1.4.0",
@ -51,11 +68,6 @@
"from": "balanced-match@>=0.4.1 <0.5.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz"
},
"bluebird": {
"version": "3.4.1",
"from": "bluebird@>=3.1.1 <4.0.0",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.1.tgz"
},
"brace-expansion": {
"version": "1.1.6",
"from": "brace-expansion@>=1.0.0 <2.0.0",
@ -91,6 +103,11 @@
"from": "cli-width@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.1.0.tgz"
},
"co": {
"version": "4.6.0",
"from": "co@>=4.6.0 <5.0.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz"
},
"code-point-at": {
"version": "1.0.0",
"from": "code-point-at@>=1.0.0 <2.0.0",
@ -102,9 +119,9 @@
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
},
"concat-stream": {
"version": "1.5.1",
"version": "1.5.2",
"from": "concat-stream@>=1.4.6 <2.0.0",
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz"
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz"
},
"core-util-is": {
"version": "1.0.2",
@ -132,9 +149,9 @@
"resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz"
},
"doctrine": {
"version": "1.2.3",
"from": "doctrine@>=1.2.1 <2.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.2.3.tgz"
"version": "1.4.0",
"from": "doctrine@>=1.2.2 <2.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.4.0.tgz"
},
"dom-serializer": {
"version": "0.1.0",
@ -205,20 +222,13 @@
},
"escope": {
"version": "3.6.0",
"from": "escope@>=3.2.0 <4.0.0",
"from": "escope@>=3.6.0 <4.0.0",
"resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz"
},
"eslint": {
"version": "2.9.0",
"from": "eslint@2.9.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-2.9.0.tgz",
"dependencies": {
"espree": {
"version": "3.1.4",
"from": "espree@3.1.4",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.1.4.tgz"
}
}
"version": "3.5.0",
"from": "eslint@3.5.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-3.5.0.tgz"
},
"eslint-plugin-html": {
"version": "1.5.2",
@ -231,9 +241,14 @@
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-4.2.3.tgz"
},
"espree": {
"version": "2.2.5",
"from": "espree@>=2.2.4 <3.0.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-2.2.5.tgz"
"version": "3.2.0",
"from": "espree@>=3.2.0 <4.0.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.2.0.tgz"
},
"esprima": {
"version": "2.7.3",
"from": "esprima@>=2.6.0 <3.0.0",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz"
},
"esrecurse": {
"version": "4.1.0",
@ -249,7 +264,7 @@
},
"estraverse": {
"version": "4.2.0",
"from": "estraverse@>=4.1.1 <5.0.0",
"from": "estraverse@>=4.2.0 <5.0.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz"
},
"esutils": {
@ -278,9 +293,9 @@
"resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz"
},
"file-entry-cache": {
"version": "1.3.1",
"from": "file-entry-cache@>=1.1.1 <2.0.0",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-1.3.1.tgz"
"version": "2.0.0",
"from": "file-entry-cache@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz"
},
"flat-cache": {
"version": "1.2.1",
@ -303,14 +318,14 @@
"resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz"
},
"glob": {
"version": "7.0.5",
"version": "7.0.6",
"from": "glob@>=7.0.3 <8.0.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.0.5.tgz"
"resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz"
},
"globals": {
"version": "9.9.0",
"version": "9.10.0",
"from": "globals@>=9.2.0 <10.0.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-9.9.0.tgz"
"resolved": "https://registry.npmjs.org/globals/-/globals-9.10.0.tgz"
},
"globby": {
"version": "5.0.0",
@ -334,7 +349,7 @@
},
"ignore": {
"version": "3.1.5",
"from": "ignore@>=3.1.2 <4.0.0",
"from": "ignore@>=3.1.5 <4.0.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.1.5.tgz"
},
"imurmurhash": {
@ -348,9 +363,9 @@
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.5.tgz"
},
"inherits": {
"version": "2.0.1",
"version": "2.0.3",
"from": "inherits@>=2.0.1 <2.1.0",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz"
},
"inquirer": {
"version": "0.12.0",
@ -363,9 +378,9 @@
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz"
},
"is-my-json-valid": {
"version": "2.13.1",
"version": "2.14.0",
"from": "is-my-json-valid@>=2.10.0 <3.0.0",
"resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz"
"resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.14.0.tgz"
},
"is-path-cwd": {
"version": "1.0.0",
@ -400,14 +415,7 @@
"js-yaml": {
"version": "3.6.1",
"from": "js-yaml@>=3.5.1 <4.0.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.6.1.tgz",
"dependencies": {
"esprima": {
"version": "2.7.2",
"from": "esprima@>=2.6.0 <3.0.0",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz"
}
}
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.6.1.tgz"
},
"json-stable-stringify": {
"version": "1.0.1",
@ -430,9 +438,9 @@
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz"
},
"lodash": {
"version": "4.15.0",
"version": "4.16.0",
"from": "lodash@>=4.0.0 <5.0.0",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.15.0.tgz"
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.16.0.tgz"
},
"minimatch": {
"version": "3.0.3",
@ -459,6 +467,11 @@
"from": "mute-stream@0.0.5",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz"
},
"natural-compare": {
"version": "1.4.0",
"from": "natural-compare@>=1.4.0 <2.0.0",
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz"
},
"number-is-nan": {
"version": "1.0.0",
"from": "number-is-nan@>=1.0.0 <2.0.0",
@ -470,9 +483,9 @@
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz"
},
"once": {
"version": "1.3.3",
"version": "1.4.0",
"from": "once@>=1.3.0 <2.0.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
},
"onetime": {
"version": "1.1.0",
@ -495,9 +508,9 @@
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz"
},
"path-is-inside": {
"version": "1.0.1",
"version": "1.0.2",
"from": "path-is-inside@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz"
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz"
},
"pify": {
"version": "2.3.0",
@ -609,6 +622,11 @@
"from": "strip-ansi@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz"
},
"strip-bom": {
"version": "3.0.0",
"from": "strip-bom@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz"
},
"strip-json-comments": {
"version": "1.0.4",
"from": "strip-json-comments@>=1.0.1 <1.1.0",
@ -620,9 +638,9 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz"
},
"table": {
"version": "3.7.8",
"version": "3.8.0",
"from": "table@>=3.7.8 <4.0.0",
"resolved": "https://registry.npmjs.org/table/-/table-3.7.8.tgz"
"resolved": "https://registry.npmjs.org/table/-/table-3.8.0.tgz"
},
"text-table": {
"version": "0.2.0",
@ -639,11 +657,6 @@
"from": "tryit@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/tryit/-/tryit-1.0.2.tgz"
},
"tv4": {
"version": "1.2.7",
"from": "tv4@>=1.2.7 <2.0.0",
"resolved": "https://registry.npmjs.org/tv4/-/tv4-1.2.7.tgz"
},
"type-check": {
"version": "0.3.2",
"from": "type-check@>=0.3.2 <0.4.0",
@ -679,11 +692,6 @@
"from": "write@>=0.2.1 <0.3.0",
"resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz"
},
"xregexp": {
"version": "3.1.1",
"from": "xregexp@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/xregexp/-/xregexp-3.1.1.tgz"
},
"xtend": {
"version": "4.0.1",
"from": "xtend@>=4.0.0 <5.0.0",

View File

@ -4,12 +4,12 @@
"repository": {},
"license": "MPL-2.0",
"dependencies": {
"eslint": "2.9.0",
"eslint": "3.5.0",
"eslint-plugin-html": "1.5.2",
"eslint-plugin-react": "4.2.3",
"escope": "^3.2.0",
"espree": "^2.2.4",
"estraverse": "^4.1.1",
"escope": "^3.6.0",
"espree": "^3.2.0",
"estraverse": "^4.2.0",
"sax": "^1.1.4"
}
}