Skip to content

Commit 52f1eee

Browse files
committed
chore: update config and turnoff semi
1 parent f0b883c commit 52f1eee

File tree

4 files changed

+91
-52
lines changed

4 files changed

+91
-52
lines changed

.eslintrc.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
module.exports = { extends: ["@react-native-community"] };
1+
module.exports = {
2+
extends: ['@react-native-community'],
3+
rules: {
4+
semi: 0,
5+
},
6+
}

.prettierrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ module.exports = {
22
bracketSpacing: false,
33
jsxBracketSameLine: true,
44
singleQuote: true,
5-
trailingComma: "all"
5+
trailingComma: 'all',
6+
semi: false,
67
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react-native": ">=0.59"
1919
},
2020
"devDependencies": {
21-
"@react-native-community/eslint-config": "^0.0.5",
21+
"@react-native-community/eslint-config": "^0.0.7",
2222
"@types/react": "^16.9.10",
2323
"@types/react-native": "^0.60.21",
2424
"eslint": "^6.8.0",

yarn.lock

+82-49
Original file line numberDiff line numberDiff line change
@@ -165,22 +165,29 @@
165165
universal-user-agent "^3.0.0"
166166
url-template "^2.0.8"
167167

168-
"@react-native-community/eslint-config@^0.0.5":
169-
version "0.0.5"
170-
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-0.0.5.tgz#584f6493258202a57efc22e7be66966e43832795"
171-
integrity sha512-jwO2tnKaTPTLX5XYXMHGEnFdf543SU7jz98/OF5mDH3b7lP+BOaCD+jVfqqHoDRkcqyPlYiR1CgwVGWpi0vMWg==
168+
"@react-native-community/eslint-config@^0.0.7":
169+
version "0.0.7"
170+
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-0.0.7.tgz#2a91d336b413d8c77ac5fa634b66703f481243ac"
171+
integrity sha512-khKxg3BMsXZYSXLat0ygSqTM0KdgciK+gm+hGecM7HzQA10hNTKeMmoFNiNxV+M/5PUyTsnRAz4RtWPVWLuPfQ==
172172
dependencies:
173+
"@react-native-community/eslint-plugin" "^1.0.0"
173174
"@typescript-eslint/eslint-plugin" "^1.5.0"
174175
"@typescript-eslint/parser" "^1.5.0"
175-
babel-eslint "10.0.1"
176-
eslint-plugin-eslint-comments "^3.1.1"
176+
babel-eslint "10.0.3"
177+
eslint-config-prettier "^6.0.0"
178+
eslint-plugin-eslint-comments "^3.1.2"
177179
eslint-plugin-flowtype "2.50.3"
178180
eslint-plugin-jest "22.4.1"
179181
eslint-plugin-prettier "2.6.2"
180-
eslint-plugin-react "7.12.4"
181-
eslint-plugin-react-hooks "^1.5.1"
182-
eslint-plugin-react-native "3.6.0"
183-
prettier "1.16.4"
182+
eslint-plugin-react "7.16.0"
183+
eslint-plugin-react-hooks "^2.0.1"
184+
eslint-plugin-react-native "3.8.1"
185+
prettier "1.17.0"
186+
187+
"@react-native-community/eslint-plugin@^1.0.0":
188+
version "1.0.0"
189+
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.0.0.tgz#ae9a430f2c5795debca491f15a989fce86ea75a0"
190+
integrity sha512-GLhSN8dRt4lpixPQh+8prSCy6PYk/MT/mvji/ojAd5yshowDo6HFsimCSTD/uWAdjpUq91XK9tVdTNWfGRlKQA==
184191

185192
"@sindresorhus/is@^0.14.0":
186193
version "0.14.0"
@@ -391,17 +398,17 @@ atob-lite@^2.0.0:
391398
resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696"
392399
integrity sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY=
393400

394-
395-
version "10.0.1"
396-
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed"
397-
integrity sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ==
401+
402+
version "10.0.3"
403+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.3.tgz#81a2c669be0f205e19462fed2482d33e4687a88a"
404+
integrity sha512-z3U7eMY6r/3f3/JB9mTsLjyxrv0Yb1zb8PCWCLpguxfCzBIZUwy23R1t/XKewP+8mEN2Ck8Dtr4q20z6ce6SoA==
398405
dependencies:
399406
"@babel/code-frame" "^7.0.0"
400407
"@babel/parser" "^7.0.0"
401408
"@babel/traverse" "^7.0.0"
402409
"@babel/types" "^7.0.0"
403-
eslint-scope "3.7.1"
404410
eslint-visitor-keys "^1.0.0"
411+
resolve "^1.12.0"
405412

406413
balanced-match@^1.0.0:
407414
version "1.0.0"
@@ -806,7 +813,14 @@ escape-string-regexp@^1.0.5:
806813
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
807814
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
808815

809-
eslint-plugin-eslint-comments@^3.1.1:
816+
eslint-config-prettier@^6.0.0:
817+
version "6.10.0"
818+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.10.0.tgz#7b15e303bf9c956875c948f6b21500e48ded6a7f"
819+
integrity sha512-AtndijGte1rPILInUdHjvKEGbIV06NuvPrqlIEaEaWtbtvJh464mDeyGMdZEQMsGvC0ZVkiex1fSNcC4HAbRGg==
820+
dependencies:
821+
get-stdin "^6.0.0"
822+
823+
eslint-plugin-eslint-comments@^3.1.2:
810824
version "3.1.2"
811825
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.1.2.tgz#4ef6c488dbe06aa1627fea107b3e5d059fc8a395"
812826
integrity sha512-QexaqrNeteFfRTad96W+Vi4Zj1KFbkHHNMMaHZEYcovKav6gdomyGzaxSDSL3GoIyUOo078wRAdYlu1caiauIQ==
@@ -841,43 +855,37 @@ eslint-plugin-prettier@^3.1.2:
841855
dependencies:
842856
prettier-linter-helpers "^1.0.0"
843857

844-
eslint-plugin-react-hooks@^1.5.1:
845-
version "1.7.0"
846-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
847-
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
858+
eslint-plugin-react-hooks@^2.0.1:
859+
version "2.3.0"
860+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
861+
integrity sha512-gLKCa52G4ee7uXzdLiorca7JIQZPPXRAQDXV83J4bUEeUuc5pIEyZYAZ45Xnxe5IuupxEqHS+hUhSLIimK1EMw==
848862

849863
eslint-plugin-react-native-globals@^0.1.1:
850864
version "0.1.2"
851865
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2"
852866
integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==
853867

854-
eslint-plugin-react-native@3.6.0:
855-
version "3.6.0"
856-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.6.0.tgz#7cad3b7c6159df6d26fe3252c6c5417a17f27b4b"
857-
integrity sha512-BEQcHZ06hZSBYWFVuNEq0xuui5VEsWpHDsZGBtfadHfCRqRMUrkYPgdDb3bpc60qShHE83kqIv59uKdinEg91Q==
868+
eslint-plugin-react-native@3.8.1:
869+
version "3.8.1"
870+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.8.1.tgz#92811e37191ecb0d29c0f0a0c9e5c943ee573821"
871+
integrity sha512-6Z4s4nvgFRdda/1s1+uu4a6EMZwEjjJ9Bk/1yBImv0fd9U2CsGu2cUakAtV83cZKhizbWhSouXoaK4JtlScdFg==
858872
dependencies:
859873
eslint-plugin-react-native-globals "^0.1.1"
860874

861-
eslint-plugin-react@7.12.4:
862-
version "7.12.4"
863-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
864-
integrity sha512-1puHJkXJY+oS1t467MjbqjvX53uQ05HXwjqDgdbGBqf5j9eeydI54G3KwiJmWciQ0HTBacIKw2jgwSBSH3yfgQ==
875+
eslint-plugin-react@7.16.0:
876+
version "7.16.0"
877+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.16.0.tgz#9928e4f3e2122ed3ba6a5b56d0303ba3e41d8c09"
878+
integrity sha512-GacBAATewhhptbK3/vTP09CbFrgUJmBSaaRcWdbQLFvUZy9yVcQxigBNHGPU/KE2AyHpzj3AWXpxoMTsIDiHug==
865879
dependencies:
866880
array-includes "^3.0.3"
867881
doctrine "^2.1.0"
868882
has "^1.0.3"
869-
jsx-ast-utils "^2.0.1"
883+
jsx-ast-utils "^2.2.1"
884+
object.entries "^1.1.0"
870885
object.fromentries "^2.0.0"
871-
prop-types "^15.6.2"
872-
resolve "^1.9.0"
873-
874-
875-
version "3.7.1"
876-
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
877-
integrity sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=
878-
dependencies:
879-
esrecurse "^4.1.0"
880-
estraverse "^4.1.1"
886+
object.values "^1.1.0"
887+
prop-types "^15.7.2"
888+
resolve "^1.12.0"
881889

882890
eslint-scope@^4.0.0:
883891
version "4.0.3"
@@ -1143,6 +1151,11 @@ functional-red-black-tree@^1.0.1:
11431151
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
11441152
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
11451153

1154+
get-stdin@^6.0.0:
1155+
version "6.0.0"
1156+
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b"
1157+
integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==
1158+
11461159
get-stream@^3.0.0:
11471160
version "3.0.0"
11481161
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
@@ -1626,7 +1639,7 @@ json-stable-stringify-without-jsonify@^1.0.1:
16261639
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
16271640
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
16281641

1629-
jsx-ast-utils@^2.0.1:
1642+
jsx-ast-utils@^2.2.1:
16301643
version "2.2.3"
16311644
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz#8a9364e402448a3ce7f14d357738310d9248054f"
16321645
integrity sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==
@@ -1885,6 +1898,16 @@ object.assign@^4.1.0:
18851898
has-symbols "^1.0.0"
18861899
object-keys "^1.0.11"
18871900

1901+
object.entries@^1.1.0:
1902+
version "1.1.1"
1903+
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.1.tgz#ee1cf04153de02bb093fec33683900f57ce5399b"
1904+
integrity sha512-ilqR7BgdyZetJutmDPfXCDffGa0/Yzl2ivVNpbx/g4UeWrCdRnFDUBrKJGLhGieRHDATnyZXWBeCb29k9CJysQ==
1905+
dependencies:
1906+
define-properties "^1.1.3"
1907+
es-abstract "^1.17.0-next.1"
1908+
function-bind "^1.1.1"
1909+
has "^1.0.3"
1910+
18881911
object.fromentries@^2.0.0:
18891912
version "2.0.2"
18901913
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.2.tgz#4a09c9b9bb3843dd0f89acdb517a794d4f355ac9"
@@ -1895,6 +1918,16 @@ object.fromentries@^2.0.0:
18951918
function-bind "^1.1.1"
18961919
has "^1.0.3"
18971920

1921+
object.values@^1.1.0:
1922+
version "1.1.1"
1923+
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e"
1924+
integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==
1925+
dependencies:
1926+
define-properties "^1.1.3"
1927+
es-abstract "^1.17.0-next.1"
1928+
function-bind "^1.1.1"
1929+
has "^1.0.3"
1930+
18981931
octokit-pagination-methods@^1.1.0:
18991932
version "1.1.0"
19001933
resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4"
@@ -2092,10 +2125,10 @@ prettier-linter-helpers@^1.0.0:
20922125
dependencies:
20932126
fast-diff "^1.1.2"
20942127

2095-
prettier@1.16.4:
2096-
version "1.16.4"
2097-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
2098-
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
2128+
prettier@1.17.0:
2129+
version "1.17.0"
2130+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.0.tgz#53b303676eed22cc14a9f0cec09b477b3026c008"
2131+
integrity sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw==
20992132

21002133
prettier@^1.19.1:
21012134
version "1.19.1"
@@ -2107,7 +2140,7 @@ progress@^2.0.0:
21072140
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
21082141
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
21092142

2110-
prop-types@^15.6.2:
2143+
prop-types@^15.7.2:
21112144
version "15.7.2"
21122145
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
21132146
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -2237,10 +2270,10 @@ resolve@^1.1.6:
22372270
dependencies:
22382271
path-parse "^1.0.6"
22392272

2240-
resolve@^1.9.0:
2241-
version "1.14.1"
2242-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff"
2243-
integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg==
2273+
resolve@^1.12.0:
2274+
version "1.15.0"
2275+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.0.tgz#1b7ca96073ebb52e741ffd799f6b39ea462c67f5"
2276+
integrity sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==
22442277
dependencies:
22452278
path-parse "^1.0.6"
22462279

0 commit comments

Comments
 (0)