Skip to content

Commit

Permalink
feat: make newline more consistent with indent changes (#33)
Browse files Browse the repository at this point in the history
Fixes #32 
BREAKING CHANGE: this changes indent/newline options and thus can require changes to code.
  • Loading branch information
gkatsev authored Sep 21, 2018
1 parent 614bb78 commit c05a28e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
node: true
},
rules: {
'array-bracket-newline': ['error', 'consistent'],
'block-scoped-var': 'off',
'brace-style': ['error', '1tbs', {allowSingleLine: false}],
'camelcase': ['error', {properties: 'always'}],
Expand All @@ -25,6 +26,7 @@ module.exports = {
'eol-last': 'error',
'eqeqeq': ['error', 'allow-null'],
'func-names': 'off',
'function-paren-newline': ['error', 'multiline'],
'guard-for-in': 'off',
'handle-callback-err': ['error', '^(err|error|anySpecificError)$'],
'indent': ['error', 2],
Expand Down Expand Up @@ -129,6 +131,7 @@ module.exports = {
'no-void': 'off',
'no-warning-comments': ['warn', {terms: ['todo', 'fixme', 'xxx'], location: 'start'}],
'no-with': 'error',
'object-curly-newline': ['error', {consistent: true}],
'object-shorthand': ['error', 'always'],
'one-var': ['error', 'never'],
'operator-assignment': ['off', 'always'],
Expand Down

0 comments on commit c05a28e

Please sign in to comment.