Update .eslint rule to affect only a restricted scope

This commit is contained in:
Mario Jr 2021-04-16 15:24:14 -03:00
parent e8d59ed14a
commit 298c4afd4c
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,6 @@ module.exports = {
'jsx-a11y/no-access-key': 0,
'react/jsx-props-no-spreading': 'off',
'max-classes-per-file': ['error', 2],
'no-param-reassign': ['error', { props: false }],
},
globals: {
browser: 'writable',

View File

@ -77,10 +77,12 @@ class MutedAlert extends Component {
}
}
/* eslint-disable no-param-reassign */
enableInputStreamAudioTracks() {
if (!this.inputStream) return;
this.inputStream.getAudioTracks().forEach((t) => { t.enabled = true; });
}
/* eslint-enable no-param-reassign */
resetTimer() {
if (this.timer) clearTimeout(this.timer);