Skip to content

Instantly share code, notes, and snippets.

@enil
Created May 22, 2016 16:01
Show Gist options
  • Save enil/ff78b69ec5f8377983592ad9f80109bf to your computer and use it in GitHub Desktop.
Save enil/ff78b69ec5f8377983592ad9f80109bf to your computer and use it in GitHub Desktop.
Personal ESLint configuration for node/ES6
---
parser: babel-eslint
parserOptions:
ecmaVersion: 6
sourceType: module
ecmaFeatures:
impliedStrict: true
environment:
node: true
rules:
semi: error
no-extra-semi: error
indent:
- error
- 2
max-len:
- error
- 120
id-length:
- error
- min: 2
camelcase: error
eol-last: error
max-depth:
- error
- 3
no-trailing-spaces: error
quotes:
- error
- single
- avoidEscape: true
brace-style:
- error
- 1tbs
curly:
- error
- multi-line
array-bracket-spacing:
- error
- never
object-curly-spacing:
- error
- never
space-in-parens:
- error
- never
no-multi-spaces: error
no-extra-parens: error
space-before-blocks:
- error
- always
no-empty: error
eqeqeq:
- error
- smart
no-use-before-define:
- error
- classes: false
functions: false
valid-typeof: error
dot-notation: error
no-console: error
default-case: error
no-fallthrough: error
no-useless-call: error
no-self-assign: error
no-redeclare: error
no-var: error
no-param-reassign: error
no-func-assign: error
no-class-assign: error
prefer-const: error
prefer-rest-params: error
prefer-template: error
no-dupe-keys: error
no-dupe-args: error
no-dupe-class-members: error
no-duplicate-imports: error
no-duplicate-case: error
arrow-spacing: error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment