generators: true
forOf: true
objectLiteralShorthandProperties: true
+ objectLiteralShorthandMethods: true
+ classes: true
rules:
# Possible Errors
## 2 space indentation
indent: [2, 2]
## add space after comma
- ## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
- comma-spacing: 1
+ comma-spacing: 2
## put semi-colon
semi: 2
## require spaces operator like var sum = 1 + 1;
new-parens: 2
## max 80 length
max-len: [2, 80, 2]
+ ## max 2 consecutive empty lines
+ no-multiple-empty-lines: [2, {max: 2}]
+ ## require newline at end of files
+ eol-last: 2
+ ## no trailing spaces
+ no-trailing-spaces: 2
+ # require space after keywords, eg 'for (..)'
+ space-after-keywords: 2
# Strict Mode
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode