chore: lint for unused arguments
This commit is contained in:
@@ -7,6 +7,12 @@ module.exports = {
|
||||
sourceType: 'module'
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': [
|
||||
'error',
|
||||
// we are only using this rule to check for unused arguments since TS
|
||||
// catches unused variables but not args.
|
||||
{ varsIgnorePattern: '.*', args: 'after-used' }
|
||||
],
|
||||
// most of the codebase are expected to be env agnostic
|
||||
'no-restricted-globals': ['error', ...DOMGlobals, ...NodeGlobals],
|
||||
// since we target ES2015 for baseline support, we need to forbid object
|
||||
|
||||
Reference in New Issue
Block a user