mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-24 06:00:07 +08:00
Enforce dot-notation
This commit is contained in:
parent
7c6e531dbd
commit
565132d1bc
@ -24,7 +24,9 @@ module.exports = {
|
|||||||
// Require spaces before and after keywords (like "if")
|
// Require spaces before and after keywords (like "if")
|
||||||
'keyword-spacing': 'error',
|
'keyword-spacing': 'error',
|
||||||
// Don't allow unused variables, but allow unused function args (e.g. in callbacks) and global vars
|
// 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'}],
|
||||||
|
// Require using dot notation (obj.prop instead of obj['prop']) where possible
|
||||||
|
'dot-notation': 'error'
|
||||||
|
|
||||||
// We will NOT be using eqeqeq for a few reasons:
|
// We will NOT be using eqeqeq for a few reasons:
|
||||||
// 1. I would have to go through and check every single `==` to make sure that it's not depending on loose equality checks.
|
// 1. I would have to go through and check every single `==` to make sure that it's not depending on loose equality checks.
|
||||||
|
Loading…
Reference in New Issue
Block a user