-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yaml
67 lines (64 loc) · 1.69 KB
/
.eslintrc.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
extends: openstack/es2015
parser: babel-eslint
plugins:
- react
parserOptions:
ecmaFeatures:
jsx: true
env:
es6: true
node: true
browser: true
rules:
# extra/overriden values
array-bracket-spacing: 2
comma-spacing: 2
curly: [2, multi-line, consistent]
dot-location: [2, property]
key-spacing: 2
keyword-spacing: 2
no-array-constructor: 2
no-empty: [2, {allowEmptyCatch: true}]
no-extra-parens: 0
no-lonely-if: 2
no-new-object: 2
no-spaced-func: 2
no-undef: 2
no-unexpected-multiline: 2
no-use-before-define: 0
no-warning-comments: 0
object-curly-spacing: 2
operator-linebreak: [2, after, {overrides: {'?': ignore, ':': ignore}}]
padded-blocks: [2, never]
quotes: [2, single, avoid-escape]
space-before-function-paren: [2, never]
yoda: 2
# node.js
no-process-env: 0
no-sync: 0
# ES6
computed-property-spacing: 2
object-shorthand: [2, methods]
# JSX
jsx-quotes: [2, prefer-single]
react/jsx-boolean-value: [2, never]
react/jsx-closing-bracket-location: [2, {nonEmpty: false, selfClosing: line-aligned}]
react/jsx-curly-spacing: 2
react/jsx-equals-spacing: 2
react/jsx-indent: [2, 2]
react/jsx-indent-props: [2, 2]
react/jsx-key: 2
react/jsx-no-duplicate-props: 2
react/jsx-no-literals: 2
react/jsx-no-undef: 2
react/jsx-pascal-case: 2
react/jsx-space-before-closing: 2
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
react/no-deprecated: 2
react/no-unknown-property: 2
react/prefer-es6-class: 2
react/react-in-jsx-scope: 2
react/require-render-return: 2
react/self-closing-comp: 2