Skip to content

Commit 19e59b8

Browse files
committed
fix eslint errors
1 parent 7eaab50 commit 19e59b8

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
module.exports = {
22
root: true,
33
extends: '@react-native-community',
4-
rules: {
5-
'arrow-parens': 'as-needed',
6-
},
74
};

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
.vscode

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"react-native-webview": "^7.5.2"
3737
},
3838
"devDependencies": {
39-
"@react-native-community/eslint-config": "^1.0.0",
39+
"@react-native-community/eslint-config": "^1.1.0",
4040
"eslint": "^6.8.0"
4141
},
4242
"dependencies": {

src/PlayerScripts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export const MAIN_SCRIPT = (
6363
<head>
6464
<meta
6565
name="viewport"
66-
content="width=device-width, initial-scale=1.0${allowWebViewZoom ? '' : ', maximum-scale=1'}"
66+
content="width=device-width, initial-scale=1.0${
67+
allowWebViewZoom ? '' : ', maximum-scale=1'
68+
}"
6769
>
6870
<style>
6971
body {

src/YoutubeIframe.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,14 @@ const YoutubeIframe = (
172172
style={[styles.webView, webViewStyle]}
173173
mediaPlaybackRequiresUserAction={false}
174174
allowsFullscreenVideo={!initialPlayerParams?.preventFullScreen}
175-
source={{html: MAIN_SCRIPT(videoId, playList, initialPlayerParams, allowWebViewZoom)}}
175+
source={{
176+
html: MAIN_SCRIPT(
177+
videoId,
178+
playList,
179+
initialPlayerParams,
180+
allowWebViewZoom,
181+
),
182+
}}
176183
userAgent={
177184
forceAndroidAutoplay
178185
? Platform.select({android: CUSTOM_USER_AGENT, ios: ''})

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
lodash "^4.17.13"
103103
to-fast-properties "^2.0.0"
104104

105-
"@react-native-community/eslint-config@^1.0.0":
105+
"@react-native-community/eslint-config@^1.1.0":
106106
version "1.1.0"
107107
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-1.1.0.tgz#2dacad06dd44d13e778510864473fc6091f080c0"
108108
integrity sha512-hwb1hC28BhkwLwnO6vDISV6XZbipw2RIEhBVBN+pE7AUG9HjFXxoksiiOSoYgox9C8g86VJwHnKpak/3NnVBkQ==

0 commit comments

Comments
 (0)