-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.yml
42 lines (42 loc) · 1.1 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
env:
es6: true
parser:
'babel-eslint'
parserOptions:
ecmaVersion: 6
sourceType: module
rules:
array-bracket-spacing: [2, 'never']
brace-style: [2, "1tbs", {allowSingleLine: true}]
comma-style: [2, 'last']
curly: [2, 'all']
dot-notation: 2
eqeqeq: 0
eol-last: 2
indent: [2, 'tab', {SwitchCase: 1}]
jsx-quotes: 2
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {}]
no-empty: [2, {allowEmptyCatch: true}]
no-extra-semi: 1
no-implicit-coercion: [2, {boolean: false, string: true, number: true}]
no-nested-ternary: 1
no-mixed-spaces-and-tabs: 2
no-multi-spaces: 2
no-multi-str: 2
no-multiple-empty-lines: 2
no-trailing-spaces: 2
no-with: 2
no-whitespace-before-property: 2
one-var: [2, 'never']
quote-props: [2, 'as-needed', {keywords: true}]
quotes: [2, single, avoid-escape]
space-before-blocks: [1, 'always']
space-before-function-paren: [2, 'never']
space-infix-ops: 2
space-in-parens: [2, 'never']
space-unary-ops: [2, {words: false, nonwords: false}]
spaced-comment: [1, 'always']
wrap-iife: 2
yoda: [2, 'never']