Skip to content

Commit

Permalink
Add a lint rule to disallow use of SourceBuffer global
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Jan 3, 2020
1 parent ff6320b commit 45c8e62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Expand Up @@ -76,6 +76,13 @@ module.exports = {
'never'
],

'no-restricted-globals': [2,
{
'name': 'SourceBuffer',
'message': 'Use `self.SourceBuffer`'
}
],

'no-restricted-properties': [2,
{ 'property': 'findIndex' }, // Intended to block usage of Array.prototype.findIndex
{ 'property': 'find' } // Intended to block usage of Array.prototype.find
Expand Down

0 comments on commit 45c8e62

Please sign in to comment.