Skip to content

Commit

Permalink
feat: add some best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 17, 2016
1 parent 95ae912 commit 558b339
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,27 @@ module.exports = {
}],
'valid-typeof': 'error',

'array-bracket-spacing': ['error', 'never'],
// Best Practices (http://eslint.org/docs/rules/#best-practices)
'accessor-pairs': 'error',
'array-callback-return': 'error',
'block-scoped-var': 'off', // todo: enable?
'class-methods-use-this': 'off',
'complexity': 'off', // todo: enable?
'consistent-return': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'default-case': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eqeqeq': ['error', 'allow-null'],
// todo continue the list

'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', '1tbs'],
'camelcase': 'error',
'comma-dangle': 'off',
'comma-spacing': ['error', {after: true, before: false}],
'comma-style': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'eol-last': 'error',
'eqeqeq': ['error', 'allow-null'],
'func-call-spacing': 'error',
'indent': ['error', 4, {SwitchCase: 1}],
'key-spacing': 'error',
Expand Down

0 comments on commit 558b339

Please sign in to comment.