Update .eslint rule to affect only a restricted scope
This commit is contained in:
parent
e8d59ed14a
commit
298c4afd4c
@ -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',
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user