mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 16:37:54 -05:00
[eslint-v2] add one-var-declaration-per-line
This commit is contained in:
committed by
Jordan Harband
parent
e6cbcf4cc5
commit
c5b4f05879
@@ -97,6 +97,9 @@ module.exports = {
|
||||
'object-curly-spacing': [2, 'always'],
|
||||
// allow just one var statement per function
|
||||
'one-var': [2, 'never'],
|
||||
// require a newline around variable declaration
|
||||
// http://eslint.org/docs/rules/one-var-declaration-per-line
|
||||
'one-var-declaration-per-line': [2, 'always'],
|
||||
// require assignment operator shorthand where possible or prohibit it entirely
|
||||
'operator-assignment': 0,
|
||||
// enforce operators to be placed before or after line breaks
|
||||
|
||||
Reference in New Issue
Block a user