mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 22:08:08 -05:00
[eslint config] [base] [minor] Disallow unused global variables
This commit is contained in:
committed by
Jordan Harband
parent
655886fc87
commit
5bcb840abe
@@ -34,7 +34,7 @@ module.exports = {
|
||||
'no-undefined': 'off',
|
||||
|
||||
// disallow declaration of variables that are not used in the code
|
||||
'no-unused-vars': ['error', { vars: 'local', args: 'after-used', ignoreRestSiblings: true }],
|
||||
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],
|
||||
|
||||
// disallow use of variables before they are defined
|
||||
'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],
|
||||
|
||||
Reference in New Issue
Block a user