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,
|
'jsx-a11y/no-access-key': 0,
|
||||||
'react/jsx-props-no-spreading': 'off',
|
'react/jsx-props-no-spreading': 'off',
|
||||||
'max-classes-per-file': ['error', 2],
|
'max-classes-per-file': ['error', 2],
|
||||||
'no-param-reassign': ['error', { props: false }],
|
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
browser: 'writable',
|
browser: 'writable',
|
||||||
|
@ -77,10 +77,12 @@ class MutedAlert extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* eslint-disable no-param-reassign */
|
||||||
enableInputStreamAudioTracks() {
|
enableInputStreamAudioTracks() {
|
||||||
if (!this.inputStream) return;
|
if (!this.inputStream) return;
|
||||||
this.inputStream.getAudioTracks().forEach((t) => { t.enabled = true; });
|
this.inputStream.getAudioTracks().forEach((t) => { t.enabled = true; });
|
||||||
}
|
}
|
||||||
|
/* eslint-enable no-param-reassign */
|
||||||
|
|
||||||
resetTimer() {
|
resetTimer() {
|
||||||
if (this.timer) clearTimeout(this.timer);
|
if (this.timer) clearTimeout(this.timer);
|
||||||
|
Loading…
Reference in New Issue
Block a user