@samitouri / QOS-React / commits / 50eafef07e

Update babel-eslint and eslint packages (#17829)

Nicolas Gallagher committed Jan 14, 2020 at 09:26 UTC 50eafef07e10874cc11dd2a79065ca28dabb0e46
4 files changed +126 -28
.eslintrc.js
+4 -2
@@ -9,7 +9,10 @@ const OFF = 0;
9 const ERROR = 2;
10
11 module.exports = {
12 - extends: 'fbjs',
12 + extends: [
13 + 'fbjs',
14 + 'prettier'
15 + ],
16
17 // Stop ESLint from looking for a configuration file in parent folders
18 root: true,
@@ -30,7 +33,6 @@ module.exports = {
33 rules: {
34 'accessor-pairs': OFF,
35 'brace-style': [ERROR, '1tbs'],
33 - 'comma-dangle': [ERROR, 'always-multiline'],
36 'consistent-return': OFF,
37 'dot-location': [ERROR, 'property'],
38 // We use console['error']() as a signal to not transform it:
package.json
+3 -2
@@ -35,7 +35,7 @@
35 "@babel/traverse": "^7.0.0",
36 "@mattiasbuelens/web-streams-polyfill": "0.1.0",
37 "art": "^0.10.1",
38 - "babel-eslint": "^10.0.0",
38 + "babel-eslint": "^10.0.3",
39 "babel-plugin-syntax-trailing-function-commas": "^6.5.0",
40 "chalk": "^1.1.3",
41 "cli-table": "^0.3.1",
@@ -46,8 +46,9 @@
46 "cross-env": "^5.1.1",
47 "danger": "^9.1.8",
48 "error-stack-parser": "^2.0.2",
49 - "eslint": "^6.1.0",
49 + "eslint": "^6.8.0",
50 "eslint-config-fbjs": "^1.1.1",
51 + "eslint-config-prettier": "^6.9.0",
52 "eslint-plugin-babel": "^5.3.0",
53 "eslint-plugin-flowtype": "^2.25.0",
54 "eslint-plugin-jest": "^22.15.0",
scripts/eslint/index.js
+4
@@ -28,6 +28,10 @@ function runESLintOnFilesWithOptions(filePatterns, onlyChanged, options) {
28 : filePatterns;
29 const report = cli.executeOnFiles(finalFilePatterns);
30
31 + if (options != null && options.fix === true) {
32 + CLIEngine.outputFixes(report);
33 + }
34 +
35 // When using `ignorePattern`, eslint will show `File ignored...` warnings for any ignores.
36 // We don't care because we *expect* some passed files will be ignores if `ignorePattern` is used.
37 const messages = report.results.filter(item => {
yarn.lock
+115 -24
@@ -1534,6 +1534,11 @@ acorn-jsx@^5.0.0:
1534 resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.1.tgz#32a064fd925429216a09b141102bfdd185fae40e"
1535 integrity sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==
1536
1537 +acorn-jsx@^5.1.0:
1538 + version "5.1.0"
1539 + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.1.0.tgz#294adb71b57398b0680015f0a38c563ee1db5384"
1540 + integrity sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==
1541 +
1542 acorn-walk@^6.0.1:
1543 version "6.2.0"
1544 resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c"
@@ -1554,6 +1559,11 @@ acorn@^6.0.1, acorn@^6.0.7, acorn@^6.2.1:
1559 resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e"
1560 integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==
1561
1562 +acorn@^7.1.0:
1563 + version "7.1.0"
1564 + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c"
1565 + integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==
1566 +
1567 adbkit-logcat@^1.1.0:
1568 version "1.1.0"
1569 resolved "https://registry.yarnpkg.com/adbkit-logcat/-/adbkit-logcat-1.1.0.tgz#01d7f9b0cef9093a30bcb3b007efff301508962f"
@@ -2213,17 +2223,17 @@ babel-core@^7.0.0-bridge:
2223 resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
2224 integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==
2225
2216 -babel-eslint@^10.0.0:
2217 - version "10.0.0"
2218 - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.0.tgz#0bb43e6b11a119bf3defbb1ee2521f42e2d413c9"
2219 - integrity sha512-GDQOtoj8CFtEe1HlbuEb6rwdbxRr4Y5DWyddivdsriEj6ulDda+fS43Zfe/Ku0tuMNnxC9JK1bmIovsLq5+hUA==
2226 +babel-eslint@^10.0.3:
2227 + version "10.0.3"
2228 + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.3.tgz#81a2c669be0f205e19462fed2482d33e4687a88a"
2229 + integrity sha512-z3U7eMY6r/3f3/JB9mTsLjyxrv0Yb1zb8PCWCLpguxfCzBIZUwy23R1t/XKewP+8mEN2Ck8Dtr4q20z6ce6SoA==
2230 dependencies:
2231 "@babel/code-frame" "^7.0.0"
2232 "@babel/parser" "^7.0.0"
2233 "@babel/traverse" "^7.0.0"
2234 "@babel/types" "^7.0.0"
2225 - eslint-scope "3.7.1"
2235 eslint-visitor-keys "^1.0.0"
2236 + resolve "^1.12.0"
2237
2238 babel-eslint@^9.0.0:
2239 version "9.0.0"
@@ -4829,6 +4839,13 @@ eslint-config-fbjs@^1.1.1:
4839 resolved "https://registry.yarnpkg.com/eslint-config-fbjs/-/eslint-config-fbjs-1.1.1.tgz#dd29f8d912e8a755257e9eeef00bae1cce57f73a"
4840 integrity sha1-3Sn42RLop1Ulfp7u8AuuHM5X9zo=
4841
4842 +eslint-config-prettier@^6.9.0:
4843 + version "6.9.0"
4844 + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.9.0.tgz#430d24822e82f7deb1e22a435bfa3999fae4ad64"
4845 + integrity sha512-k4E14HBtcLv0uqThaI6I/n1LEqROp8XaPu6SO9Z32u5NlGRC07Enu1Bh2KEFw4FNHbekH8yzbIU9kUGxbiGmCA==
4846 + dependencies:
4847 + get-stdin "^6.0.0"
4848 +
4849 eslint-plugin-babel@^5.3.0:
4850 version "5.3.0"
4851 resolved "https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-5.3.0.tgz#2e7f251ccc249326da760c1a4c948a91c32d0023"
@@ -4913,11 +4930,23 @@ eslint-utils@^1.3.1:
4930 dependencies:
4931 eslint-visitor-keys "^1.0.0"
4932
4933 +eslint-utils@^1.4.3:
4934 + version "1.4.3"
4935 + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f"
4936 + integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==
4937 + dependencies:
4938 + eslint-visitor-keys "^1.1.0"
4939 +
4940 eslint-visitor-keys@1.0.0, eslint-visitor-keys@^1.0.0:
4941 version "1.0.0"
4942 resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
4943 integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==
4944
4945 +eslint-visitor-keys@^1.1.0:
4946 + version "1.1.0"
4947 + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2"
4948 + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==
4949 +
4950 eslint@5.16.0:
4951 version "5.16.0"
4952 resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.16.0.tgz#a1e3ac1aae4a3fbd8296fcf8f7ab7314cbb6abea"
@@ -5001,10 +5030,10 @@ eslint@^3.7.1:
5030 text-table "~0.2.0"
5031 user-home "^2.0.0"
5032
5004 -eslint@^6.1.0:
5005 - version "6.1.0"
5006 - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.1.0.tgz#06438a4a278b1d84fb107d24eaaa35471986e646"
5007 - integrity sha512-QhrbdRD7ofuV09IuE2ySWBz0FyXCq0rriLTZXZqaWSI79CVtHVRdkFuFTViiqzZhkCgfOh9USpriuGN2gIpZDQ==
5033 +eslint@^6.8.0:
5034 + version "6.8.0"
5035 + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb"
5036 + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==
5037 dependencies:
5038 "@babel/code-frame" "^7.0.0"
5039 ajv "^6.10.0"
@@ -5013,19 +5042,19 @@ eslint@^6.1.0:
5042 debug "^4.0.1"
5043 doctrine "^3.0.0"
5044 eslint-scope "^5.0.0"
5016 - eslint-utils "^1.3.1"
5017 - eslint-visitor-keys "^1.0.0"
5018 - espree "^6.0.0"
5045 + eslint-utils "^1.4.3"
5046 + eslint-visitor-keys "^1.1.0"
5047 + espree "^6.1.2"
5048 esquery "^1.0.1"
5049 esutils "^2.0.2"
5050 file-entry-cache "^5.0.1"
5051 functional-red-black-tree "^1.0.1"
5052 glob-parent "^5.0.0"
5024 - globals "^11.7.0"
5053 + globals "^12.1.0"
5054 ignore "^4.0.6"
5055 import-fresh "^3.0.0"
5056 imurmurhash "^0.1.4"
5028 - inquirer "^6.4.1"
5057 + inquirer "^7.0.0"
5058 is-glob "^4.0.0"
5059 js-yaml "^3.13.1"
5060 json-stable-stringify-without-jsonify "^1.0.1"
@@ -5034,7 +5063,7 @@ eslint@^6.1.0:
5063 minimatch "^3.0.4"
5064 mkdirp "^0.5.1"
5065 natural-compare "^1.4.0"
5037 - optionator "^0.8.2"
5066 + optionator "^0.8.3"
5067 progress "^2.0.0"
5068 regexpp "^2.0.1"
5069 semver "^6.1.2"
@@ -5061,14 +5090,14 @@ espree@^3.4.0:
5090 acorn "^5.5.0"
5091 acorn-jsx "^3.0.0"
5092
5064 -espree@^6.0.0:
5065 - version "6.0.0"
5066 - resolved "https://registry.yarnpkg.com/espree/-/espree-6.0.0.tgz#716fc1f5a245ef5b9a7fdb1d7b0d3f02322e75f6"
5067 - integrity sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q==
5093 +espree@^6.1.2:
5094 + version "6.1.2"
5095 + resolved "https://registry.yarnpkg.com/espree/-/espree-6.1.2.tgz#6c272650932b4f91c3714e5e7b5f5e2ecf47262d"
5096 + integrity sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==
5097 dependencies:
5069 - acorn "^6.0.7"
5070 - acorn-jsx "^5.0.0"
5071 - eslint-visitor-keys "^1.0.0"
5098 + acorn "^7.1.0"
5099 + acorn-jsx "^5.1.0"
5100 + eslint-visitor-keys "^1.1.0"
5101
5102 esprima@3.x.x, esprima@^3.1.3:
5103 version "3.1.3"
@@ -5412,7 +5441,7 @@ fast-json-stable-stringify@^2.0.0:
5441 resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
5442 integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I=
5443
5415 -fast-levenshtein@~2.0.4:
5444 +fast-levenshtein@~2.0.4, fast-levenshtein@~2.0.6:
5445 version "2.0.6"
5446 resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
5447 integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
@@ -6154,6 +6183,13 @@ globals@^11.1.0, globals@^11.7.0:
6183 resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
6184 integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
6185
6186 +globals@^12.1.0:
6187 + version "12.3.0"
6188 + resolved "https://registry.yarnpkg.com/globals/-/globals-12.3.0.tgz#1e564ee5c4dded2ab098b0f88f24702a3c56be13"
6189 + integrity sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==
6190 + dependencies:
6191 + type-fest "^0.8.1"
6192 +
6193 globals@^9.14.0, globals@^9.18.0:
6194 version "9.18.0"
6195 resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
@@ -6792,7 +6828,7 @@ inquirer@^0.12.0:
6828 strip-ansi "^3.0.0"
6829 through "^2.3.6"
6830
6795 -inquirer@^6.2.2, inquirer@^6.4.1:
6831 +inquirer@^6.2.2:
6832 version "6.5.1"
6833 resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.1.tgz#8bfb7a5ac02dac6ff641ac4c5ff17da112fcdb42"
6834 integrity sha512-uxNHBeQhRXIoHWTSNYUFhQVrHYFThIt6IVo2fFmSe8aBwdR3/w6b58hJpiL/fMukFkvGzjg+hSxFtwvVmKZmXw==
@@ -6811,6 +6847,25 @@ inquirer@^6.2.2, inquirer@^6.4.1:
6847 strip-ansi "^5.1.0"
6848 through "^2.3.6"
6849
6850 +inquirer@^7.0.0:
6851 + version "7.0.3"
6852 + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.3.tgz#f9b4cd2dff58b9f73e8d43759436ace15bed4567"
6853 + integrity sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==
6854 + dependencies:
6855 + ansi-escapes "^4.2.1"
6856 + chalk "^2.4.2"
6857 + cli-cursor "^3.1.0"
6858 + cli-width "^2.0.0"
6859 + external-editor "^3.0.3"
6860 + figures "^3.0.0"
6861 + lodash "^4.17.15"
6862 + mute-stream "0.0.8"
6863 + run-async "^2.2.0"
6864 + rxjs "^6.5.3"
6865 + string-width "^4.1.0"
6866 + strip-ansi "^5.1.0"
6867 + through "^2.3.6"
6868 +
6869 internal-ip@^4.3.0:
6870 version "4.3.0"
6871 resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907"
@@ -9382,6 +9437,18 @@ optionator@^0.8.1, optionator@^0.8.2:
9437 type-check "~0.3.2"
9438 wordwrap "~1.0.0"
9439
9440 +optionator@^0.8.3:
9441 + version "0.8.3"
9442 + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
9443 + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
9444 + dependencies:
9445 + deep-is "~0.1.3"
9446 + fast-levenshtein "~2.0.6"
9447 + levn "~0.3.0"
9448 + prelude-ls "~1.1.2"
9449 + type-check "~0.3.2"
9450 + word-wrap "~1.2.3"
9451 +
9452 ordered-read-streams@^1.0.0:
9453 version "1.0.0"
9454 resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.0.tgz#d674a86ffcedf83d0ae06afa2918855e96d4033a"
@@ -10950,6 +11017,13 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2, resolve@^1.4.0:
11017 dependencies:
11018 path-parse "^1.0.6"
11019
11020 +resolve@^1.12.0:
11021 + version "1.14.2"
11022 + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.2.tgz#dbf31d0fa98b1f29aa5169783b9c290cb865fea2"
11023 + integrity sha512-EjlOBLBO1kxsUxsKjLt7TAECyKW6fOh1VRkykQkKGzcBbjjPIxBqGh0jf7GJ3k/f5mxMqW3htMD3WdTUVtW8HQ==
11024 + dependencies:
11025 + path-parse "^1.0.6"
11026 +
11027 responselike@^1.0.2:
11028 version "1.0.2"
11029 resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
@@ -11147,6 +11221,13 @@ rxjs@^6.4.0:
11221 dependencies:
11222 tslib "^1.9.0"
11223
11224 +rxjs@^6.5.3:
11225 + version "6.5.4"
11226 + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz#e0777fe0d184cec7872df147f303572d414e211c"
11227 + integrity sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==
11228 + dependencies:
11229 + tslib "^1.9.0"
11230 +
11231 safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
11232 version "5.1.2"
11233 resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
@@ -12700,6 +12781,11 @@ type-fest@^0.5.2:
12781 resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.5.2.tgz#d6ef42a0356c6cd45f49485c3b6281fc148e48a2"
12782 integrity sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw==
12783
12784 +type-fest@^0.8.1:
12785 + version "0.8.1"
12786 + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
12787 + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
12788 +
12789 type-is@~1.6.17, type-is@~1.6.18:
12790 version "1.6.18"
12791 resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
@@ -13383,6 +13469,11 @@ winreg@0.0.12:
13469 resolved "https://registry.yarnpkg.com/winreg/-/winreg-0.0.12.tgz#07105554ba1a9d08979251d129475bffae3006b7"
13470 integrity sha1-BxBVVLoanQiXklHRKUdb/64wBrc=
13471
13472 +word-wrap@~1.2.3:
13473 + version "1.2.3"
13474 + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
13475 + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
13476 +
13477 wordwrap@~0.0.2:
13478 version "0.0.3"
13479 resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"