Skip to content

Commit 37eaacf

Browse files
Aditya Vohradanez
authored andcommitted
Update eslint and related deps (#254)
# Conflicts: # package.json # yarn.lock
1 parent 0a83b6c commit 37eaacf

File tree

5 files changed

+128
-93
lines changed

5 files changed

+128
-93
lines changed

.eslintrc

Lines changed: 0 additions & 25 deletions
This file was deleted.

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
extends: 'eslint:recommended',
4+
rules: {
5+
'comma-dangle': ['error', 'always-multiline'],
6+
'no-underscore-dangle': 'off',
7+
quotes: ['error', 'single', 'avoid-escape'],
8+
strict: 'off',
9+
'no-unused-vars': 'error',
10+
'no-undef': 'error'
11+
},
12+
env: {
13+
node: true,
14+
es6: true
15+
},
16+
globals: {
17+
ASTNode: true,
18+
FlowTypeDescriptor: true,
19+
Handler: true,
20+
NodePath: true,
21+
PropDescriptor: true,
22+
PropTypeDescriptor: true,
23+
Resolver: true
24+
}
25+
}

example/generateMarkdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
"use strict";
9+
'use strict';
1010

1111
function stringOfLength(string, length) {
1212
var newString = '';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
"devDependencies": {
4444
"babel-cli": "^6.26.0",
4545
"babel-core": "^6.26.0",
46-
"babel-eslint": "^8.0.1",
46+
"babel-eslint": "^8.2.2",
4747
"babel-jest": "^22.2.2",
4848
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4949
"babel-plugin-transform-runtime": "^6.23.0",
5050
"babel-preset-env": "^1.6.1",
5151
"babel-preset-flow": "^6.23.0",
5252
"cross-spawn": "^6.0.4",
53-
"eslint": "^4.3.0",
53+
"eslint": "^4.18.1",
5454
"flow-bin": "^0.70.0",
5555
"jest": "^22.3.0",
5656
"jest-diff": "^22.1.0",

yarn.lock

Lines changed: 100 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,49 @@
22
# yarn lockfile v1
33

44

5-
"@babel/[email protected]", "@babel/code-frame@^7.0.0-beta.35":
5+
"@babel/[email protected]", "@babel/code-frame@^7.0.0-beta.40":
6+
version "7.0.0-beta.40"
7+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.40.tgz#37e2b0cf7c56026b4b21d3927cadf81adec32ac6"
8+
dependencies:
9+
"@babel/highlight" "7.0.0-beta.40"
10+
11+
"@babel/code-frame@^7.0.0-beta.35":
612
version "7.0.0-beta.44"
713
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9"
814
dependencies:
915
"@babel/highlight" "7.0.0-beta.44"
1016

11-
"@babel/[email protected].44":
12-
version "7.0.0-beta.44"
13-
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42"
17+
"@babel/[email protected].40":
18+
version "7.0.0-beta.40"
19+
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.40.tgz#ab61f9556f4f71dbd1138949c795bb9a21e302ea"
1420
dependencies:
15-
"@babel/types" "7.0.0-beta.44"
21+
"@babel/types" "7.0.0-beta.40"
1622
jsesc "^2.5.1"
1723
lodash "^4.2.0"
1824
source-map "^0.5.0"
1925
trim-right "^1.0.1"
2026

21-
"@babel/[email protected].44":
22-
version "7.0.0-beta.44"
23-
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd"
27+
"@babel/[email protected].40":
28+
version "7.0.0-beta.40"
29+
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.40.tgz#9d033341ab16517f40d43a73f2d81fc431ccd7b6"
2430
dependencies:
25-
"@babel/helper-get-function-arity" "7.0.0-beta.44"
26-
"@babel/template" "7.0.0-beta.44"
27-
"@babel/types" "7.0.0-beta.44"
31+
"@babel/helper-get-function-arity" "7.0.0-beta.40"
32+
"@babel/template" "7.0.0-beta.40"
33+
"@babel/types" "7.0.0-beta.40"
2834

29-
"@babel/[email protected].44":
30-
version "7.0.0-beta.44"
31-
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15"
35+
"@babel/[email protected].40":
36+
version "7.0.0-beta.40"
37+
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.40.tgz#ac0419cf067b0ec16453e1274f03878195791c6e"
3238
dependencies:
33-
"@babel/types" "7.0.0-beta.44"
39+
"@babel/types" "7.0.0-beta.40"
3440

35-
"@babel/helper-split-export-declaration@7.0.0-beta.44":
36-
version "7.0.0-beta.44"
37-
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz#c0b351735e0fbcb3822c8ad8db4e583b05ebd9dc"
41+
"@babel/highlight@7.0.0-beta.40":
42+
version "7.0.0-beta.40"
43+
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.40.tgz#b43d67d76bf46e1d10d227f68cddcd263786b255"
3844
dependencies:
39-
"@babel/types" "7.0.0-beta.44"
45+
chalk "^2.0.0"
46+
esutils "^2.0.2"
47+
js-tokens "^3.0.0"
4048

4149
4250
version "7.0.0-beta.44"
@@ -46,33 +54,32 @@
4654
esutils "^2.0.2"
4755
js-tokens "^3.0.0"
4856

49-
"@babel/[email protected].44":
50-
version "7.0.0-beta.44"
51-
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.44.tgz#f8832f4fdcee5d59bf515e595fc5106c529b394f"
57+
"@babel/[email protected].40":
58+
version "7.0.0-beta.40"
59+
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.40.tgz#034988c6424eb5c3268fe6a608626de1f4410fc8"
5260
dependencies:
53-
"@babel/code-frame" "7.0.0-beta.44"
54-
"@babel/types" "7.0.0-beta.44"
55-
babylon "7.0.0-beta.44"
61+
"@babel/code-frame" "7.0.0-beta.40"
62+
"@babel/types" "7.0.0-beta.40"
63+
babylon "7.0.0-beta.40"
5664
lodash "^4.2.0"
5765

58-
59-
version "7.0.0-beta.44"
60-
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966"
61-
dependencies:
62-
"@babel/code-frame" "7.0.0-beta.44"
63-
"@babel/generator" "7.0.0-beta.44"
64-
"@babel/helper-function-name" "7.0.0-beta.44"
65-
"@babel/helper-split-export-declaration" "7.0.0-beta.44"
66-
"@babel/types" "7.0.0-beta.44"
67-
babylon "7.0.0-beta.44"
68-
debug "^3.1.0"
66+
"@babel/traverse@^7.0.0-beta.40":
67+
version "7.0.0-beta.40"
68+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.40.tgz#d140e449b2e093ef9fe1a2eecc28421ffb4e521e"
69+
dependencies:
70+
"@babel/code-frame" "7.0.0-beta.40"
71+
"@babel/generator" "7.0.0-beta.40"
72+
"@babel/helper-function-name" "7.0.0-beta.40"
73+
"@babel/types" "7.0.0-beta.40"
74+
babylon "7.0.0-beta.40"
75+
debug "^3.0.1"
6976
globals "^11.1.0"
7077
invariant "^2.2.0"
7178
lodash "^4.2.0"
7279

73-
"@babel/[email protected].44":
74-
version "7.0.0-beta.44"
75-
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757"
80+
"@babel/[email protected].40", "@babel/types@^7.0.0-beta.40":
81+
version "7.0.0-beta.40"
82+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.40.tgz#25c3d7aae14126abe05fcb098c65a66b6d6b8c14"
7683
dependencies:
7784
esutils "^2.0.2"
7885
lodash "^4.2.0"
@@ -102,15 +109,28 @@ acorn@^3.0.4:
102109
version "3.3.0"
103110
resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a"
104111

105-
acorn@^5.0.0, acorn@^5.3.0, acorn@^5.5.0:
112+
acorn@^5.0.0, acorn@^5.3.0:
106113
version "5.5.3"
107114
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9"
108115

116+
acorn@^5.4.0:
117+
version "5.4.1"
118+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"
119+
109120
ajv-keywords@^2.1.0:
110121
version "2.1.1"
111122
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762"
112123

113-
ajv@^5.1.0, ajv@^5.2.3, ajv@^5.3.0:
124+
ajv@^5.1.0, ajv@^5.2.3:
125+
version "5.3.0"
126+
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.3.0.tgz#4414ff74a50879c208ee5fdc826e32c303549eda"
127+
dependencies:
128+
co "^4.6.0"
129+
fast-deep-equal "^1.0.0"
130+
fast-json-stable-stringify "^2.0.0"
131+
json-schema-traverse "^0.3.0"
132+
133+
ajv@^5.3.0:
114134
version "5.5.2"
115135
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
116136
dependencies:
@@ -341,14 +361,14 @@ babel-core@^6.0.0, babel-core@^6.26.0:
341361
slash "^1.0.0"
342362
source-map "^0.5.6"
343363

344-
babel-eslint@^8.0.1:
345-
version "8.2.3"
346-
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.3.tgz#1a2e6681cc9bc4473c32899e59915e19cd6733cf"
364+
babel-eslint@^8.2.2:
365+
version "8.2.2"
366+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.2.tgz#1102273354c6f0b29b4ea28a65f97d122296b68b"
347367
dependencies:
348-
"@babel/code-frame" "7.0.0-beta.44"
349-
"@babel/traverse" "7.0.0-beta.44"
350-
"@babel/types" "7.0.0-beta.44"
351-
babylon "7.0.0-beta.44"
368+
"@babel/code-frame" "^7.0.0-beta.40"
369+
"@babel/traverse" "^7.0.0-beta.40"
370+
"@babel/types" "^7.0.0-beta.40"
371+
babylon "^7.0.0-beta.40"
352372
eslint-scope "~3.7.1"
353373
eslint-visitor-keys "^1.0.0"
354374

@@ -843,6 +863,10 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26
843863
lodash "^4.17.4"
844864
to-fast-properties "^1.0.3"
845865

866+
[email protected], babylon@^7.0.0-beta.40:
867+
version "7.0.0-beta.40"
868+
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.40.tgz#91fc8cd56d5eb98b28e6fde41045f2957779940a"
869+
846870
847871
version "7.0.0-beta.44"
848872
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d"
@@ -1215,7 +1239,7 @@ debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8:
12151239
dependencies:
12161240
ms "2.0.0"
12171241

1218-
debug@^3.1.0:
1242+
debug@^3.0.1, debug@^3.1.0:
12191243
version "3.1.0"
12201244
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
12211245
dependencies:
@@ -1379,9 +1403,9 @@ eslint-visitor-keys@^1.0.0:
13791403
version "1.0.0"
13801404
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
13811405

1382-
eslint@^4.3.0:
1383-
version "4.19.1"
1384-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.19.1.tgz#32d1d653e1d90408854bfb296f076ec7e186a300"
1406+
eslint@^4.18.1:
1407+
version "4.18.1"
1408+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.18.1.tgz#b9138440cb1e98b2f44a0d578c6ecf8eae6150b0"
13851409
dependencies:
13861410
ajv "^5.3.0"
13871411
babel-code-frame "^6.22.0"
@@ -1392,7 +1416,7 @@ eslint@^4.3.0:
13921416
doctrine "^2.1.0"
13931417
eslint-scope "^3.7.1"
13941418
eslint-visitor-keys "^1.0.0"
1395-
espree "^3.5.4"
1419+
espree "^3.5.2"
13961420
esquery "^1.0.0"
13971421
esutils "^2.0.2"
13981422
file-entry-cache "^2.0.0"
@@ -1414,19 +1438,18 @@ eslint@^4.3.0:
14141438
path-is-inside "^1.0.2"
14151439
pluralize "^7.0.0"
14161440
progress "^2.0.0"
1417-
regexpp "^1.0.1"
14181441
require-uncached "^1.0.3"
14191442
semver "^5.3.0"
14201443
strip-ansi "^4.0.0"
14211444
strip-json-comments "~2.0.1"
1422-
table "4.0.2"
1445+
table "^4.0.1"
14231446
text-table "~0.2.0"
14241447

1425-
espree@^3.5.4:
1426-
version "3.5.4"
1427-
resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7"
1448+
espree@^3.5.2:
1449+
version "3.5.3"
1450+
resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.3.tgz#931e0af64e7fbbed26b050a29daad1fc64799fa6"
14281451
dependencies:
1429-
acorn "^5.5.0"
1452+
acorn "^5.4.0"
14301453
acorn-jsx "^3.0.0"
14311454

14321455
esprima@^3.1.3:
@@ -1770,8 +1793,8 @@ glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2:
17701793
path-is-absolute "^1.0.0"
17711794

17721795
globals@^11.0.1, globals@^11.1.0:
1773-
version "11.4.0"
1774-
resolved "https://registry.yarnpkg.com/globals/-/globals-11.4.0.tgz#b85c793349561c16076a3c13549238a27945f1bc"
1796+
version "11.3.0"
1797+
resolved "https://registry.yarnpkg.com/globals/-/globals-11.3.0.tgz#e04fdb7b9796d8adac9c8f64c14837b2313378b0"
17751798

17761799
globals@^9.18.0:
17771800
version "9.18.0"
@@ -1971,9 +1994,15 @@ inquirer@^3.0.6:
19711994
strip-ansi "^4.0.0"
19721995
through "^2.3.6"
19731996

1974-
invariant@^2.2.0, invariant@^2.2.2:
1975-
version "2.2.4"
1976-
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
1997+
invariant@^2.2.0:
1998+
version "2.2.3"
1999+
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.3.tgz#1a827dfde7dcbd7c323f0ca826be8fa7c5e9d688"
2000+
dependencies:
2001+
loose-envify "^1.0.0"
2002+
2003+
invariant@^2.2.2:
2004+
version "2.2.2"
2005+
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"
19772006
dependencies:
19782007
loose-envify "^1.0.0"
19792008

@@ -3913,12 +3942,18 @@ to-regex@^3.0.1, to-regex@^3.0.2:
39133942
regex-not "^1.0.2"
39143943
safe-regex "^1.1.0"
39153944

3916-
tough-cookie@>=2.3.3, tough-cookie@^2.3.3, tough-cookie@~2.3.3:
3945+
tough-cookie@>=2.3.3, tough-cookie@^2.3.3:
39173946
version "2.3.4"
39183947
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655"
39193948
dependencies:
39203949
punycode "^1.4.1"
39213950

3951+
tough-cookie@~2.3.3:
3952+
version "2.3.3"
3953+
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561"
3954+
dependencies:
3955+
punycode "^1.4.1"
3956+
39223957
tr46@^1.0.0:
39233958
version "1.0.1"
39243959
resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09"

0 commit comments

Comments
 (0)