Bug 1355776 - Upgrade ESLint to version 3.19.0 to pick up autofix improvements and other fixes. r=mossop

Pick up autofix improvements in 3.19.0. Upgrade eslint-plugin-react. Also fix issues with the package.json file and the ESLint node_modules upload script.

MozReview-Commit-ID: IDZ1n4qTTuv

--HG--
extra : rebase_source : aa97cd6f314ce10d16d12446e50a27d6f994a9f1
This commit is contained in:
Mark Banner 2017-04-12 12:07:01 +01:00
Родитель ac86494218
Коммит 3dd96b34b3
4 изменённых файлов: 117 добавлений и 39 удалений

137
npm-shrinkwrap.json сгенерированный
Просмотреть файл

@ -1,10 +1,10 @@
{
"name": "mach-eslint",
"name": "mozillaeslintsetup",
"dependencies": {
"acorn": {
"version": "4.0.4",
"from": "acorn@4.0.4",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.4.tgz"
"version": "5.0.3",
"from": "acorn@>=5.0.1 <6.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.0.3.tgz"
},
"acorn-jsx": {
"version": "3.0.1",
@ -19,9 +19,9 @@
}
},
"ajv": {
"version": "4.11.5",
"version": "4.11.6",
"from": "ajv@>=4.7.0 <5.0.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.5.tgz"
"resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.6.tgz"
},
"ajv-keywords": {
"version": "1.5.1",
@ -58,6 +58,11 @@
"from": "array-uniq@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz"
},
"array.prototype.find": {
"version": "2.0.4",
"from": "array.prototype.find@>=2.0.1 <3.0.0",
"resolved": "https://registry.npmjs.org/array.prototype.find/-/array.prototype.find-2.0.4.tgz"
},
"arrify": {
"version": "1.0.1",
"from": "arrify@>=1.0.0 <2.0.0",
@ -74,13 +79,13 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz"
},
"brace-expansion": {
"version": "1.1.6",
"version": "1.1.7",
"from": "brace-expansion@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz"
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz"
},
"buffer-shims": {
"version": "1.0.0",
"from": "buffer-shims@>=1.0.0 <2.0.0",
"from": "buffer-shims@>=1.0.0 <1.1.0",
"resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz"
},
"caller-path": {
@ -153,6 +158,11 @@
"from": "deep-is@>=0.1.3 <0.2.0",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz"
},
"define-properties": {
"version": "1.1.2",
"from": "define-properties@>=1.1.2 <2.0.0",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz"
},
"del": {
"version": "2.2.2",
"from": "del@>=2.0.2 <3.0.0",
@ -195,6 +205,16 @@
"from": "entities@>=1.1.1 <2.0.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz"
},
"es-abstract": {
"version": "1.7.0",
"from": "es-abstract@>=1.7.0 <2.0.0",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.7.0.tgz"
},
"es-to-primitive": {
"version": "1.1.1",
"from": "es-to-primitive@>=1.1.1 <2.0.0",
"resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz"
},
"es5-ext": {
"version": "0.10.15",
"from": "es5-ext@>=0.10.14 <0.11.0",
@ -236,9 +256,9 @@
"resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz"
},
"eslint": {
"version": "3.18.0",
"from": "eslint@3.18.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-3.18.0.tgz"
"version": "3.19.0",
"from": "eslint@3.19.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-3.19.0.tgz"
},
"eslint-plugin-html": {
"version": "1.5.2",
@ -246,14 +266,21 @@
"resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-1.5.2.tgz"
},
"eslint-plugin-react": {
"version": "4.2.3",
"from": "eslint-plugin-react@4.2.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-4.2.3.tgz"
"version": "6.10.3",
"from": "eslint-plugin-react@6.10.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-6.10.3.tgz",
"dependencies": {
"doctrine": {
"version": "1.5.0",
"from": "doctrine@>=1.2.2 <2.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz"
}
}
},
"espree": {
"version": "3.4.0",
"version": "3.4.1",
"from": "espree@>=3.4.0 <4.0.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.4.0.tgz"
"resolved": "https://registry.npmjs.org/espree/-/espree-3.4.1.tgz"
},
"esprima": {
"version": "3.1.3",
@ -317,11 +344,21 @@
"from": "flat-cache@>=1.2.1 <2.0.0",
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.2.2.tgz"
},
"foreach": {
"version": "2.0.5",
"from": "foreach@>=2.0.5 <3.0.0",
"resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz"
},
"fs.realpath": {
"version": "1.0.0",
"from": "fs.realpath@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
},
"function-bind": {
"version": "1.1.0",
"from": "function-bind@>=1.1.0 <2.0.0",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz"
},
"generate-function": {
"version": "2.0.0",
"from": "generate-function@>=2.0.0 <3.0.0",
@ -338,9 +375,9 @@
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz"
},
"globals": {
"version": "9.16.0",
"version": "9.17.0",
"from": "globals@>=9.14.0 <10.0.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-9.16.0.tgz"
"resolved": "https://registry.npmjs.org/globals/-/globals-9.17.0.tgz"
},
"globby": {
"version": "5.0.0",
@ -352,6 +389,11 @@
"from": "graceful-fs@>=4.1.2 <5.0.0",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz"
},
"has": {
"version": "1.0.1",
"from": "has@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz"
},
"has-ansi": {
"version": "2.0.0",
"from": "has-ansi@>=2.0.0 <3.0.0",
@ -363,9 +405,9 @@
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz"
},
"ignore": {
"version": "3.2.6",
"version": "3.2.7",
"from": "ignore@>=3.2.0 <4.0.0",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.2.6.tgz"
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.2.7.tgz"
},
"imurmurhash": {
"version": "0.1.4",
@ -393,9 +435,19 @@
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz"
},
"interpret": {
"version": "1.0.1",
"version": "1.0.2",
"from": "interpret@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.1.tgz"
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.2.tgz"
},
"is-callable": {
"version": "1.1.3",
"from": "is-callable@>=1.1.3 <2.0.0",
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz"
},
"is-date-object": {
"version": "1.0.1",
"from": "is-date-object@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz"
},
"is-fullwidth-code-point": {
"version": "1.0.0",
@ -427,11 +479,21 @@
"from": "is-property@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz"
},
"is-regex": {
"version": "1.0.4",
"from": "is-regex@>=1.0.3 <2.0.0",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz"
},
"is-resolvable": {
"version": "1.0.0",
"from": "is-resolvable@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.0.0.tgz"
},
"is-symbol": {
"version": "1.0.1",
"from": "is-symbol@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz"
},
"isarray": {
"version": "1.0.0",
"from": "isarray@>=1.0.0 <1.1.0",
@ -443,9 +505,9 @@
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz"
},
"js-yaml": {
"version": "3.8.2",
"version": "3.8.3",
"from": "js-yaml@>=3.5.1 <4.0.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.8.2.tgz"
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.8.3.tgz"
},
"json-stable-stringify": {
"version": "1.0.1",
@ -462,6 +524,11 @@
"from": "jsonpointer@>=4.0.0 <5.0.0",
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz"
},
"jsx-ast-utils": {
"version": "1.4.0",
"from": "jsx-ast-utils@>=1.3.4 <2.0.0",
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.0.tgz"
},
"levn": {
"version": "0.3.0",
"from": "levn@>=0.3.0 <0.4.0",
@ -512,6 +579,16 @@
"from": "object-assign@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
},
"object-keys": {
"version": "1.0.11",
"from": "object-keys@>=1.0.8 <2.0.0",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz"
},
"object.assign": {
"version": "4.0.4",
"from": "object.assign@>=4.0.4 <5.0.0",
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.0.4.tgz"
},
"once": {
"version": "1.4.0",
"from": "once@>=1.3.0 <2.0.0",
@ -583,9 +660,9 @@
"resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz"
},
"readable-stream": {
"version": "2.2.6",
"version": "2.2.9",
"from": "readable-stream@>=2.2.2 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.6.tgz"
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.9.tgz"
},
"readline2": {
"version": "1.0.1",
@ -653,9 +730,9 @@
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz"
},
"string_decoder": {
"version": "0.10.31",
"from": "string_decoder@>=0.10.0 <0.11.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
"version": "1.0.0",
"from": "string_decoder@>=1.0.0 <1.1.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.0.tgz"
},
"string-width": {
"version": "1.0.2",

Просмотреть файл

@ -1,12 +1,12 @@
{
"name": "Mozilla ESLint Setup",
"name": "mozillaeslintsetup",
"description": "This package file is for setup of ESLint only for editor integration.",
"repository": {},
"license": "MPL-2.0",
"dependencies": {
"eslint": "3.18.0",
"eslint": "3.19.0",
"eslint-plugin-html": "1.5.2",
"eslint-plugin-react": "4.2.3",
"eslint-plugin-react": "6.10.3",
"escope": "^3.6.0",
"espree": "^3.4.0",
"estraverse": "^4.2.0",

Просмотреть файл

@ -1,8 +1,8 @@
[
{
"size": 2828427,
"size": 3009784,
"visibility": "public",
"digest": "7419df6e059132577ec1fc8337a813656514fa229393bbbc25e33264f2ea204dd363c906a28d7778e388fc2abb30016174ff7513fd6075fdee0d9803a52b976d",
"digest": "4819d3b7faf0f6bbbbf213246e7a5158f27fcaae9bd352f18d3476775931b1daca1bc4e20c589b3e8559d01e5022a4fd3708a96f2e480e354a4f9b247eab1ba6",
"algorithm": "sha512",
"filename": "eslint.tar.gz"
}

Просмотреть файл

@ -53,22 +53,23 @@ npm shrinkwrap
echo "Creating eslint.tar.gz..."
tar cvfz eslint.tar.gz node_modules
cd $DIR
echo "Downloading tooltool..."
wget https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py
chmod +x tooltool.py
echo "Adding eslint.tar.gz to tooltool..."
rm manifest.tt
./tooltool.py add --visibility public ../../../eslint.tar.gz
./tooltool.py add --visibility public eslint.tar.gz
echo "Uploading eslint.tar.gz to tooltool..."
./tooltool.py upload --authentication-file=~/.tooltool-token --message "node_modules folder update for tools/lint/eslint"
echo "Cleaning up..."
rm ../../../eslint.tar.gz
mv manifest.tt tools/lint/eslint/manifest.tt
rm eslint.tar.gz
rm tooltool.py
cd $DIR
echo ""
echo "Update complete, please commit and check in your changes."