[eslint-v2] add one-var-declaration-per-line

This commit is contained in:
Harrison Shoff
2016-02-14 18:39:32 -08:00
committed by Jordan Harband
parent e6cbcf4cc5
commit c5b4f05879

View File

@@ -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