mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-14 23:10:08 +08:00
Ignore unused vars starting with underscore
This commit is contained in:
parent
e2ef03cc32
commit
fd5ed31afa
@ -24,7 +24,7 @@ module.exports = {
|
||||
// Require spaces before and after keywords (like "if")
|
||||
'keyword-spacing': 'error',
|
||||
// Don't allow unused variables, but allow unused function args (e.g. in callbacks) and global vars
|
||||
'no-unused-vars': ['error', {vars: 'local', args: 'none'}],
|
||||
'no-unused-vars': ['error', {vars: 'local', args: 'none', varsIgnorePattern: '^_'}],
|
||||
// Require using dot notation (obj.prop instead of obj['prop']) where possible
|
||||
'dot-notation': 'error',
|
||||
// Don't use spaces before parens in anonymous or named functions
|
||||
|
Loading…
Reference in New Issue
Block a user