diff --git a/.eslintrc.js b/.eslintrc.js index 562b457bf7..f1886f7957 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,6 +56,7 @@ module.exports = { 'no-sequences': ['error', { 'allowInParentheses': false }], 'no-trailing-spaces': ['error'], '@babel/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }], + 'no-useless-constructor': ['error'], 'no-void': ['error', { 'allowAsStatement': true }], 'no-nested-ternary': ['error'], 'one-var': ['error', 'never'], @@ -256,7 +257,11 @@ module.exports = { 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:jsx-a11y/recommended' - ] + ], + rules: { + 'no-useless-constructor': ['off'], + '@typescript-eslint/no-useless-constructor': ['error'] + } } ] }; diff --git a/src/plugins/syncPlay/core/timeSync/TimeSyncServer.js b/src/plugins/syncPlay/core/timeSync/TimeSyncServer.js index 734763c07d..4cb9fdd307 100644 --- a/src/plugins/syncPlay/core/timeSync/TimeSyncServer.js +++ b/src/plugins/syncPlay/core/timeSync/TimeSyncServer.js @@ -9,10 +9,6 @@ import TimeSync from './TimeSync'; * Class that manages time syncing with server. */ class TimeSyncServer extends TimeSync { - constructor(syncPlayManager) { - super(syncPlayManager); - } - /** * Makes a ping request to the server. */ diff --git a/src/plugins/syncPlay/ui/players/HtmlAudioPlayer.js b/src/plugins/syncPlay/ui/players/HtmlAudioPlayer.js index 89929eb688..c0b5a3bf6b 100644 --- a/src/plugins/syncPlay/ui/players/HtmlAudioPlayer.js +++ b/src/plugins/syncPlay/ui/players/HtmlAudioPlayer.js @@ -10,10 +10,6 @@ import HtmlVideoPlayer from './HtmlVideoPlayer'; */ class HtmlAudioPlayer extends HtmlVideoPlayer { static type = 'htmlaudioplayer'; - - constructor(player, syncPlayManager) { - super(player, syncPlayManager); - } } export default HtmlAudioPlayer;