2015-09-30 22:15:19 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
root: true
|
|
|
|
|
|
|
|
env:
|
2016-11-20 13:23:35 +00:00
|
|
|
es6: true
|
2015-09-30 22:15:19 +00:00
|
|
|
browser: true
|
|
|
|
mocha: true
|
|
|
|
node: true
|
|
|
|
|
|
|
|
rules:
|
2017-09-18 02:04:29 +00:00
|
|
|
arrow-body-style: error
|
|
|
|
arrow-parens: [error, always]
|
|
|
|
arrow-spacing: error
|
|
|
|
block-scoped-var: error
|
|
|
|
block-spacing: [error, always]
|
|
|
|
brace-style: [error, 1tbs]
|
2017-11-15 06:35:15 +00:00
|
|
|
comma-dangle:
|
|
|
|
- error
|
|
|
|
- always-multiline
|
2017-09-18 02:04:29 +00:00
|
|
|
curly: [error, all]
|
|
|
|
dot-location: [error, property]
|
|
|
|
dot-notation: error
|
|
|
|
eol-last: error
|
|
|
|
eqeqeq: error
|
|
|
|
handle-callback-err: error
|
|
|
|
indent: [error, tab]
|
|
|
|
key-spacing: [error, {beforeColon: false, afterColon: true}]
|
|
|
|
keyword-spacing: [error, {before: true, after: true}]
|
|
|
|
linebreak-style: [error, unix]
|
|
|
|
no-alert: error
|
|
|
|
no-catch-shadow: error
|
|
|
|
no-confusing-arrow: error
|
|
|
|
no-control-regex: off
|
|
|
|
no-duplicate-imports: error
|
|
|
|
no-else-return: error
|
|
|
|
no-implicit-globals: error
|
|
|
|
no-multi-spaces: error
|
|
|
|
no-multiple-empty-lines: [error, { "max": 1 }]
|
|
|
|
no-shadow: error
|
|
|
|
no-template-curly-in-string: error
|
|
|
|
no-trailing-spaces: error
|
|
|
|
no-unsafe-negation: error
|
|
|
|
no-useless-computed-key: error
|
2018-02-18 19:56:39 +00:00
|
|
|
no-useless-constructor: error
|
2017-09-18 02:04:29 +00:00
|
|
|
no-useless-return: error
|
2017-12-06 13:55:55 +00:00
|
|
|
no-use-before-define: [error, {functions: false}]
|
2018-01-11 11:33:36 +00:00
|
|
|
no-var: error
|
2017-09-18 02:04:29 +00:00
|
|
|
object-curly-spacing: [error, never]
|
2018-03-05 00:59:16 +00:00
|
|
|
object-shorthand:
|
|
|
|
- error
|
|
|
|
- methods
|
|
|
|
- avoidExplicitReturnArrows: true
|
2017-09-18 02:04:29 +00:00
|
|
|
padded-blocks: [error, never]
|
2018-02-19 11:08:03 +00:00
|
|
|
padding-line-between-statements:
|
|
|
|
- error
|
|
|
|
- blankLine: always
|
|
|
|
prev:
|
|
|
|
- block
|
|
|
|
- block-like
|
|
|
|
next: "*"
|
|
|
|
- blankLine: always
|
|
|
|
prev: "*"
|
|
|
|
next:
|
|
|
|
- block
|
|
|
|
- block-like
|
2017-09-18 02:04:29 +00:00
|
|
|
prefer-const: error
|
2018-02-18 19:56:39 +00:00
|
|
|
prefer-rest-params: error
|
|
|
|
prefer-spread: error
|
2018-03-23 14:15:59 +00:00
|
|
|
quote-props: [error, consistent-as-needed]
|
2017-09-18 02:04:29 +00:00
|
|
|
quotes: [error, double, avoid-escape]
|
2018-02-18 19:56:39 +00:00
|
|
|
rest-spread-spacing: error
|
2017-09-18 02:04:29 +00:00
|
|
|
semi-spacing: error
|
|
|
|
semi-style: [error, last]
|
|
|
|
semi: [error, always]
|
|
|
|
space-before-blocks: error
|
2017-11-12 20:37:30 +00:00
|
|
|
space-before-function-paren:
|
|
|
|
- error
|
|
|
|
- anonymous: never
|
|
|
|
named: never
|
|
|
|
asyncArrow: always # Otherwise requires `async()`
|
2017-09-18 02:04:29 +00:00
|
|
|
space-in-parens: [error, never]
|
|
|
|
space-infix-ops: error
|
|
|
|
spaced-comment: [error, always]
|
|
|
|
strict: error
|
|
|
|
template-curly-spacing: error
|
|
|
|
yoda: error
|
2015-09-30 22:15:19 +00:00
|
|
|
|
|
|
|
globals:
|
2016-04-16 11:32:38 +00:00
|
|
|
log: false
|
2015-09-30 22:15:19 +00:00
|
|
|
|
|
|
|
extends: eslint:recommended
|