-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
51 lines (44 loc) · 1.03 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
43
44
45
46
47
48
49
50
51
---
root: true
plugins:
- react
env:
browser: true
es6: true
commonjs: true
parser: 'babel-eslint'
parserOptions:
ecmaFeatures:
jsx: true
experimentalObjectRestSpread: true
ecmaVersion: 6
jsx: true
rules:
block-spacing: [2, always]
brace-style: [2, 1tbs]
comma-dangle: [2, always-multiline]
curly: [2, all]
eqeqeq: 2
indent: [2, 4]
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix]
no-console: 2
no-control-regex: 0
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-multiple-empty-lines: [2, {max: 2}]
no-trailing-spaces: 2
no-unexpected-multiline: 2
no-unreachable: 2
object-curly-spacing: [2, never]
quotes: [2, single, {allowTemplateLiterals: true}]
semi: [2, never]
space-before-blocks: 2
space-before-function-paren: [2, {anonymous: always, named: never}]
space-infix-ops: 2
spaced-comment: [2, always]
extends:
- eslint:recommended
- plugin:react/recommended