-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
42 lines (35 loc) · 891 Bytes
/
.eslintrc
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:
node: true
extends:
- plugin:import/errors
- plugin:import/warnings
- plugin:react/recommended
- "@elastic/kibana"
- prettier
plugins:
- prettier
- react
settings:
import/resolver:
- "@elastic/eslint-import-resolver-kibana"
react:
version: "16.0"
rules:
# preferences
comma-dangle: [2, always-multiline]
no-multiple-empty-lines: [2, {max: 1, maxEOF: 1}]
no-multi-spaces: 2
# module importing
import/order: [2, {"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]}]
# Prettier
prettier/prettier: 2
# React
jsx-quotes: 2
react/no-did-mount-set-state: 2
react/no-did-update-set-state: 2
react/no-multi-comp: [2, {ignoreStateless: true}]
react/self-closing-comp: 2
react/sort-comp: 2
react/jsx-boolean-value: 2
react/jsx-wrap-multilines: 2
react/no-unescaped-entities: [2, {forbid: [">", "}"]}]