2016-09-29 00:24:29 +03:00
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
es6: true
|
|
|
|
node: true
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
2016-10-10 19:40:57 +03:00
|
|
|
- plugin:node/recommended
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
- node
|
|
|
|
- promise
|
2016-09-29 00:24:29 +03:00
|
|
|
|
|
|
|
root: true
|
|
|
|
|
|
|
|
rules:
|
|
|
|
comma-dangle: off
|
2016-09-29 00:55:35 +03:00
|
|
|
curly: warn
|
2016-09-29 00:24:29 +03:00
|
|
|
eol-last: error
|
|
|
|
eqeqeq: error
|
|
|
|
handle-callback-err: error
|
2016-09-29 00:55:35 +03:00
|
|
|
indent: [error, 2, {SwitchCase: 1}]
|
2016-09-29 00:24:29 +03:00
|
|
|
no-console: off
|
|
|
|
no-multi-spaces: error
|
|
|
|
no-unused-vars: [error, {vars: all, args: none}]
|
|
|
|
one-var: [error, never]
|
|
|
|
quotes: [error, double]
|
|
|
|
semi: [error, always]
|
2016-10-10 19:40:57 +03:00
|
|
|
|
|
|
|
node/no-unpublished-bin: error
|
|
|
|
|
|
|
|
promise/param-names: error
|
|
|
|
promise/always-return: error
|
|
|
|
promise/catch-or-return: error
|
|
|
|
promise/no-native: off
|