Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed May 14, 2020
1 parent 7eaab50 commit 19e59b8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
rules: {
'arrow-parens': 'as-needed',
},
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.vscode
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react-native-webview": "^7.5.2"
},
"devDependencies": {
"@react-native-community/eslint-config": "^1.0.0",
"@react-native-community/eslint-config": "^1.1.0",
"eslint": "^6.8.0"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion src/PlayerScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export const MAIN_SCRIPT = (
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0${allowWebViewZoom ? '' : ', maximum-scale=1'}"
content="width=device-width, initial-scale=1.0${
allowWebViewZoom ? '' : ', maximum-scale=1'
}"
>
<style>
body {
Expand Down
9 changes: 8 additions & 1 deletion src/YoutubeIframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ const YoutubeIframe = (
style={[styles.webView, webViewStyle]}
mediaPlaybackRequiresUserAction={false}
allowsFullscreenVideo={!initialPlayerParams?.preventFullScreen}
source={{html: MAIN_SCRIPT(videoId, playList, initialPlayerParams, allowWebViewZoom)}}
source={{
html: MAIN_SCRIPT(
videoId,
playList,
initialPlayerParams,
allowWebViewZoom,
),
}}
userAgent={
forceAndroidAutoplay
? Platform.select({android: CUSTOM_USER_AGENT, ios: ''})
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
lodash "^4.17.13"
to-fast-properties "^2.0.0"

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

0 comments on commit 19e59b8

Please sign in to comment.