Skip to content

Commit

Permalink
tools: remove babel-eslint, upgrade standard
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Oct 3, 2023
1 parent 477cad5 commit a0c77fd
Show file tree
Hide file tree
Showing 7 changed files with 1,369 additions and 937 deletions.
3 changes: 1 addition & 2 deletions examples/react/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import screenfull from 'screenfull'

import { version } from '../../../package.json'
Expand Down Expand Up @@ -127,7 +126,7 @@ class App extends Component {
}

handleClickFullscreen = () => {
screenfull.request(findDOMNode(this.player))
screenfull.request(document.querySelector('.react-player'))
}

renderLoadButton = (url, label) => {
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"@types/react": "^17.0.0",
"auto-changelog": "^2.0.0",
"ava": "^3.6.0",
"babel-eslint": "^10.1.0",
"babel-plugin-istanbul": "^6.0.0",
"codecov": "^3.6.5",
"cross-env": "^7.0.2",
Expand All @@ -83,8 +82,8 @@
"screenfull": "^5.0.2",
"sinon": "^9.0.2",
"snazzy": "^8.0.0",
"standard": "^14.3.3",
"ts-standard": "^9.0.0",
"standard": "^17.1.0",
"ts-standard": "^12.0.2",
"typescript": "^4.1.2"
},
"dependencies": {
Expand All @@ -95,7 +94,6 @@
"react-fast-compare": "^3.0.1"
},
"standard": {
"parser": "babel-eslint",
"ignore": [
"/dist/*"
]
Expand Down
2 changes: 1 addition & 1 deletion src/players/DailyMotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class DailyMotion extends Component {
height: '100%',
video: id,
params: {
controls: controls,
controls,
autoplay: this.props.playing,
mute: this.props.muted,
start: parseStartTime(url),
Expand Down
2 changes: 1 addition & 1 deletion src/players/Twitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Twitch extends Component {
channel: isChannel ? id : '',
height: '100%',
width: '100%',
playsinline: playsinline,
playsinline,
autoplay: this.props.playing,
muted: this.props.muted,
// https://github.com/CookPete/react-player/issues/733#issuecomment-549085859
Expand Down
2 changes: 1 addition & 1 deletion src/players/Wistia.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Wistia extends Component {
options: {
autoPlay: playing,
silentAutoPlay: 'allow',
muted: muted,
muted,
controlsVisibleOnLoad: controls,
fullscreenButton: controls,
playbar: controls,
Expand Down
2 changes: 1 addition & 1 deletion test/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test('onError - flv', t => {
if (event === 'error') {
setTimeout(cb, 100)
}
};
}

load = () => {}
}
Expand Down
Loading

0 comments on commit a0c77fd

Please sign in to comment.