Skip to content

Commit d0426dc

Browse files
authored
Merge pull request #69 from Naturalclar/chore/updateEslint
chore: update eslint
2 parents 8579a41 + 9d27c83 commit d0426dc

File tree

5 files changed

+151
-54
lines changed

5 files changed

+151
-54
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ buck-out/
4545
*.keystore
4646

4747
# Editor config
48-
.vscode
48+
.vscode
49+
50+
# eslintcache
51+
.eslintcache

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module.exports = {
22
bracketSpacing: false,
33
jsxBracketSameLine: true,
44
singleQuote: true,
5-
trailingComma: "all"
5+
trailingComma: 'all',
66
};

.yarnclean

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# test directories
2+
__tests__
3+
test
4+
tests
5+
powered-test
6+
7+
# asset directories
8+
docs
9+
doc
10+
website
11+
images
12+
assets
13+
14+
# examples
15+
example
16+
examples
17+
18+
# code coverage directories
19+
coverage
20+
.nyc_output
21+
22+
# build scripts
23+
Makefile
24+
Gulpfile.js
25+
Gruntfile.js
26+
27+
# configs
28+
appveyor.yml
29+
circle.yml
30+
codeship-services.yml
31+
codeship-steps.yml
32+
wercker.yml
33+
.tern-project
34+
.gitattributes
35+
.editorconfig
36+
.*ignore
37+
.eslintrc
38+
.jshintrc
39+
.flowconfig
40+
.documentup.json
41+
.yarn-metadata.json
42+
.travis.yml
43+
44+
# misc
45+
*.md

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
"main": "js/index.js",
66
"types": "index.d.ts",
77
"author": "Rafael Lincoln <rafaellincolnpereira@gmail.com>",
8-
"contributors": [],
8+
"contributors": [
9+
"Jesse Katsumata <jesse.katsumata@gmail.com>"
10+
],
911
"homepage": "https://github.com/react-native-community/react-native-push-notification-ios#readme",
1012
"license": "MIT",
1113
"scripts": {
1214
"start": "node node_modules/react-native/local-cli/cli.js start",
1315
"test": "yarn test:flow && yarn test:js",
1416
"test:flow": "flow check",
1517
"test:js": "echo 0",
16-
"lint": "eslint .",
18+
"lint": "eslint \"js/*.js\" --cache",
1719
"test:tsc": "tsc --noEmit"
1820
},
1921
"keywords": [
@@ -33,7 +35,7 @@
3335
},
3436
"devDependencies": {
3537
"@babel/core": "^7.0.0",
36-
"@react-native-community/eslint-config": "^0.0.5",
38+
"@react-native-community/eslint-config": "^0.0.7",
3739
"babel-core": "^7.0.0-bridge.0",
3840
"babel-jest": "24.1.0",
3941
"babel-plugin-module-resolver": "^3.1.3",

yarn.lock

Lines changed: 96 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -647,22 +647,29 @@
647647
lodash "^4.17.10"
648648
to-fast-properties "^2.0.0"
649649

650-
"@react-native-community/eslint-config@^0.0.5":
651-
version "0.0.5"
652-
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-0.0.5.tgz#584f6493258202a57efc22e7be66966e43832795"
653-
integrity sha512-jwO2tnKaTPTLX5XYXMHGEnFdf543SU7jz98/OF5mDH3b7lP+BOaCD+jVfqqHoDRkcqyPlYiR1CgwVGWpi0vMWg==
650+
"@react-native-community/eslint-config@^0.0.7":
651+
version "0.0.7"
652+
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-0.0.7.tgz#2a91d336b413d8c77ac5fa634b66703f481243ac"
653+
integrity sha512-khKxg3BMsXZYSXLat0ygSqTM0KdgciK+gm+hGecM7HzQA10hNTKeMmoFNiNxV+M/5PUyTsnRAz4RtWPVWLuPfQ==
654654
dependencies:
655+
"@react-native-community/eslint-plugin" "^1.0.0"
655656
"@typescript-eslint/eslint-plugin" "^1.5.0"
656657
"@typescript-eslint/parser" "^1.5.0"
657-
babel-eslint "10.0.1"
658-
eslint-plugin-eslint-comments "^3.1.1"
658+
babel-eslint "10.0.3"
659+
eslint-config-prettier "^6.0.0"
660+
eslint-plugin-eslint-comments "^3.1.2"
659661
eslint-plugin-flowtype "2.50.3"
660662
eslint-plugin-jest "22.4.1"
661663
eslint-plugin-prettier "2.6.2"
662-
eslint-plugin-react "7.12.4"
663-
eslint-plugin-react-hooks "^1.5.1"
664-
eslint-plugin-react-native "3.6.0"
665-
prettier "1.16.4"
664+
eslint-plugin-react "7.16.0"
665+
eslint-plugin-react-hooks "^2.0.1"
666+
eslint-plugin-react-native "3.8.1"
667+
prettier "1.17.0"
668+
669+
"@react-native-community/eslint-plugin@^1.0.0":
670+
version "1.0.0"
671+
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.0.0.tgz#ae9a430f2c5795debca491f15a989fce86ea75a0"
672+
integrity sha512-GLhSN8dRt4lpixPQh+8prSCy6PYk/MT/mvji/ojAd5yshowDo6HFsimCSTD/uWAdjpUq91XK9tVdTNWfGRlKQA==
666673

667674
"@types/eslint-visitor-keys@^1.0.0":
668675
version "1.0.0"
@@ -1063,17 +1070,17 @@ babel-core@^7.0.0-bridge.0:
10631070
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
10641071
integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==
10651072

1066-
babel-eslint@10.0.1:
1067-
version "10.0.1"
1068-
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed"
1069-
integrity sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ==
1073+
babel-eslint@10.0.3:
1074+
version "10.0.3"
1075+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.3.tgz#81a2c669be0f205e19462fed2482d33e4687a88a"
1076+
integrity sha512-z3U7eMY6r/3f3/JB9mTsLjyxrv0Yb1zb8PCWCLpguxfCzBIZUwy23R1t/XKewP+8mEN2Ck8Dtr4q20z6ce6SoA==
10701077
dependencies:
10711078
"@babel/code-frame" "^7.0.0"
10721079
"@babel/parser" "^7.0.0"
10731080
"@babel/traverse" "^7.0.0"
10741081
"@babel/types" "^7.0.0"
1075-
eslint-scope "3.7.1"
10761082
eslint-visitor-keys "^1.0.0"
1083+
resolve "^1.12.0"
10771084

10781085
babel-jest@24.1.0, babel-jest@^24.1.0:
10791086
version "24.1.0"
@@ -1915,7 +1922,14 @@ escodegen@^1.9.1:
19151922
optionalDependencies:
19161923
source-map "~0.6.1"
19171924

1918-
eslint-plugin-eslint-comments@^3.1.1:
1925+
eslint-config-prettier@^6.0.0:
1926+
version "6.10.0"
1927+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.10.0.tgz#7b15e303bf9c956875c948f6b21500e48ded6a7f"
1928+
integrity sha512-AtndijGte1rPILInUdHjvKEGbIV06NuvPrqlIEaEaWtbtvJh464mDeyGMdZEQMsGvC0ZVkiex1fSNcC4HAbRGg==
1929+
dependencies:
1930+
get-stdin "^6.0.0"
1931+
1932+
eslint-plugin-eslint-comments@^3.1.2:
19191933
version "3.1.2"
19201934
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.1.2.tgz#4ef6c488dbe06aa1627fea107b3e5d059fc8a395"
19211935
integrity sha512-QexaqrNeteFfRTad96W+Vi4Zj1KFbkHHNMMaHZEYcovKav6gdomyGzaxSDSL3GoIyUOo078wRAdYlu1caiauIQ==
@@ -1950,43 +1964,37 @@ eslint-plugin-prettier@^3.1.2:
19501964
dependencies:
19511965
prettier-linter-helpers "^1.0.0"
19521966

1953-
eslint-plugin-react-hooks@^1.5.1:
1954-
version "1.7.0"
1955-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
1956-
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
1967+
eslint-plugin-react-hooks@^2.0.1:
1968+
version "2.3.0"
1969+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
1970+
integrity sha512-gLKCa52G4ee7uXzdLiorca7JIQZPPXRAQDXV83J4bUEeUuc5pIEyZYAZ45Xnxe5IuupxEqHS+hUhSLIimK1EMw==
19571971

19581972
eslint-plugin-react-native-globals@^0.1.1:
19591973
version "0.1.2"
19601974
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2"
19611975
integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==
19621976

1963-
eslint-plugin-react-native@3.6.0:
1964-
version "3.6.0"
1965-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.6.0.tgz#7cad3b7c6159df6d26fe3252c6c5417a17f27b4b"
1966-
integrity sha512-BEQcHZ06hZSBYWFVuNEq0xuui5VEsWpHDsZGBtfadHfCRqRMUrkYPgdDb3bpc60qShHE83kqIv59uKdinEg91Q==
1977+
eslint-plugin-react-native@3.8.1:
1978+
version "3.8.1"
1979+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.8.1.tgz#92811e37191ecb0d29c0f0a0c9e5c943ee573821"
1980+
integrity sha512-6Z4s4nvgFRdda/1s1+uu4a6EMZwEjjJ9Bk/1yBImv0fd9U2CsGu2cUakAtV83cZKhizbWhSouXoaK4JtlScdFg==
19671981
dependencies:
19681982
eslint-plugin-react-native-globals "^0.1.1"
19691983

1970-
eslint-plugin-react@7.12.4:
1971-
version "7.12.4"
1972-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
1973-
integrity sha512-1puHJkXJY+oS1t467MjbqjvX53uQ05HXwjqDgdbGBqf5j9eeydI54G3KwiJmWciQ0HTBacIKw2jgwSBSH3yfgQ==
1984+
eslint-plugin-react@7.16.0:
1985+
version "7.16.0"
1986+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.16.0.tgz#9928e4f3e2122ed3ba6a5b56d0303ba3e41d8c09"
1987+
integrity sha512-GacBAATewhhptbK3/vTP09CbFrgUJmBSaaRcWdbQLFvUZy9yVcQxigBNHGPU/KE2AyHpzj3AWXpxoMTsIDiHug==
19741988
dependencies:
19751989
array-includes "^3.0.3"
19761990
doctrine "^2.1.0"
19771991
has "^1.0.3"
1978-
jsx-ast-utils "^2.0.1"
1992+
jsx-ast-utils "^2.2.1"
1993+
object.entries "^1.1.0"
19791994
object.fromentries "^2.0.0"
1980-
prop-types "^15.6.2"
1981-
resolve "^1.9.0"
1982-
1983-
eslint-scope@3.7.1:
1984-
version "3.7.1"
1985-
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
1986-
integrity sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=
1987-
dependencies:
1988-
esrecurse "^4.1.0"
1989-
estraverse "^4.1.1"
1995+
object.values "^1.1.0"
1996+
prop-types "^15.7.2"
1997+
resolve "^1.12.0"
19901998

19911999
eslint-scope@^4.0.0:
19922000
version "4.0.3"
@@ -2584,6 +2592,11 @@ get-caller-file@^1.0.1:
25842592
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a"
25852593
integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==
25862594

2595+
get-stdin@^6.0.0:
2596+
version "6.0.0"
2597+
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b"
2598+
integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==
2599+
25872600
get-stream@^3.0.0:
25882601
version "3.0.0"
25892602
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
@@ -3773,7 +3786,7 @@ jsprim@^1.2.2:
37733786
json-schema "0.2.3"
37743787
verror "1.10.0"
37753788

3776-
jsx-ast-utils@^2.0.1:
3789+
jsx-ast-utils@^2.2.1:
37773790
version "2.2.3"
37783791
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz#8a9364e402448a3ce7f14d357738310d9248054f"
37793792
integrity sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==
@@ -3930,7 +3943,7 @@ lodash@^4.17.14, lodash@^4.17.15:
39303943
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
39313944
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
39323945

3933-
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
3946+
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
39343947
version "1.4.0"
39353948
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
39363949
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -4645,6 +4658,16 @@ object.assign@^4.1.0:
46454658
has-symbols "^1.0.0"
46464659
object-keys "^1.0.11"
46474660

4661+
object.entries@^1.1.0:
4662+
version "1.1.1"
4663+
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.1.tgz#ee1cf04153de02bb093fec33683900f57ce5399b"
4664+
integrity sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ==
4665+
dependencies:
4666+
define-properties "^1.1.3"
4667+
es-abstract "^1.17.0-next.1"
4668+
function-bind "^1.1.1"
4669+
has "^1.0.3"
4670+
46484671
object.fromentries@^2.0.0:
46494672
version "2.0.2"
46504673
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.2.tgz#4a09c9b9bb3843dd0f89acdb517a794d4f355ac9"
@@ -4678,6 +4701,16 @@ object.pick@^1.3.0:
46784701
dependencies:
46794702
isobject "^3.0.1"
46804703

4704+
object.values@^1.1.0:
4705+
version "1.1.1"
4706+
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e"
4707+
integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==
4708+
dependencies:
4709+
define-properties "^1.1.3"
4710+
es-abstract "^1.17.0-next.1"
4711+
function-bind "^1.1.1"
4712+
has "^1.0.3"
4713+
46814714
on-finished@~2.3.0:
46824715
version "2.3.0"
46834716
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
@@ -5041,10 +5074,10 @@ prettier-linter-helpers@^1.0.0:
50415074
dependencies:
50425075
fast-diff "^1.1.2"
50435076

5044-
prettier@1.16.4:
5045-
version "1.16.4"
5046-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
5047-
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
5077+
prettier@1.17.0:
5078+
version "1.17.0"
5079+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.0.tgz#53b303676eed22cc14a9f0cec09b477b3026c008"
5080+
integrity sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw==
50485081

50495082
prettier@^1.19.1:
50505083
version "1.19.1"
@@ -5110,6 +5143,15 @@ prop-types@^15.5.8, prop-types@^15.6.2:
51105143
loose-envify "^1.3.1"
51115144
object-assign "^4.1.1"
51125145

5146+
prop-types@^15.7.2:
5147+
version "15.7.2"
5148+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
5149+
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
5150+
dependencies:
5151+
loose-envify "^1.4.0"
5152+
object-assign "^4.1.1"
5153+
react-is "^16.8.1"
5154+
51135155
pseudomap@^1.0.2:
51145156
version "1.0.2"
51155157
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
@@ -5185,6 +5227,11 @@ react-devtools-core@^3.4.2:
51855227
shell-quote "^1.6.1"
51865228
ws "^3.3.1"
51875229

5230+
react-is@^16.8.1:
5231+
version "16.12.0"
5232+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
5233+
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==
5234+
51885235
react-native@0.58.4:
51895236
version "0.58.4"
51905237
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.58.4.tgz#bb1392727712787ba84983104c4920c0f4082677"
@@ -5503,10 +5550,10 @@ resolve@^1.10.0, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.8.1:
55035550
dependencies:
55045551
path-parse "^1.0.6"
55055552

5506-
resolve@^1.9.0:
5507-
version "1.14.1"
5508-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff"
5509-
integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg==
5553+
resolve@^1.12.0:
5554+
version "1.15.1"
5555+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
5556+
integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==
55105557
dependencies:
55115558
path-parse "^1.0.6"
55125559

0 commit comments

Comments
 (0)