Skip to content

Instantly share code, notes, and snippets.

@jpzwarte
Created May 19, 2016 08:44
Show Gist options
  • Save jpzwarte/46351dfd29063ceaf3f2447916112a22 to your computer and use it in GitHub Desktop.
Save jpzwarte/46351dfd29063ceaf3f2447916112a22 to your computer and use it in GitHub Desktop.
module.exports = {
extends: 'eslint:recommended',
env: {
node: true
},
parserOptions: {
ecmaVersion: 6
},
rules: {
'array-callback-return': 'error',
'block-scoped-var': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'camelcase': ['error', { properties: 'always' }],
'consistent-return': 'error',
'curly': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eqeqeq': ['error', 'smart'],
'func-style': ['error', 'declaration'],
'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: { const: 3, let: 2, var: 2 }}],
'max-statements-per-line': ['error', { max: 1 }],
'new-cap': ['error', { capIsNew: false }],
'new-parens': 'error',
'newline-after-var': 'error',
'newline-before-return': 'error',
'no-alert': 'error',
'no-caller': 'error',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-empty-function': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-parens': ['error', 'all', { conditionalAssign: false }],
'no-labels': 'error',
'no-multiple-empty-lines': 'error',
'no-negated-condition': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-shadow': 'error',
'no-throw-literal': 'error',
'no-underscore-dangle': 'error',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': 'error',
'no-unused-expressions': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-void': 'error',
'no-with': 'error',
'no-whitespace-before-property': 'error',
'operator-linebreak': ['error', 'after'],
'padded-blocks': ['error', 'never'],
'quote-props': ['error', 'as-needed'],
'quotes': ['error', 'single', { avoidEscape: true }],
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never' }]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment