forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.react.yml
105 lines (98 loc) · 2.58 KB
/
.eslintrc.react.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
plugins:
- react
- react-hooks
extends:
- plugin:react/recommended
- plugin:react-hooks/recommended
parserOptions:
ecmaFeatures:
jsx: true
settings:
react:
version: detect
rules:
react/button-has-type: error
react/default-props-match-prop-types: error
react/destructuring-assignment: error
react/display-name: off
react/forbid-component-props:
- error
- forbid:
- style
react/forbid-dom-props:
- error
- forbid:
- id
react/jsx-boolean-value:
- error
- always
react/jsx-closing-bracket-location:
- error
- tag-aligned
react/jsx-closing-tag-location: error
react/jsx-equals-spacing:
- error
- never
react/jsx-first-prop-new-line:
- error
- multiline-multiprop
react/jsx-handler-names: error
react/jsx-indent:
- error
- 2
react/jsx-indent-props:
- error
- 2
react/jsx-max-props-per-line:
- error
- maximum: 1
when: multiline
react/jsx-no-bind: error
react/jsx-no-literals: error
react/jsx-fragments:
- error
- element
react/jsx-pascal-case: error
react/jsx-props-no-multi-spaces: error
react/jsx-sort-props: error
react/jsx-tag-spacing:
- error
- afterOpening: never
beforeClosing: never
beforeSelfClosing: always
closingSlash: never
react/jsx-wrap-multilines: error # Conflict with no-extra-parens
react/no-access-state-in-setstate: error
react/no-array-index-key: error
react/no-danger: error
react/no-did-mount-set-state: error
react/no-did-update-set-state: error
react/no-redundant-should-component-update: error
react/no-this-in-sfc: error
react/no-typos: error
react/no-unescaped-entities: error
react/no-unsafe: error
react/no-unused-prop-types: error
react/no-unused-state: error
react/no-will-update-set-state: error
react/prefer-es6-class: error
react/prefer-read-only-props: error
react/prop-types: off # defaultProps/propTypes is being deprecated over TypeScript and default function parameters.
react/require-default-props: error
react/self-closing-comp: error
react/sort-default-props: error
react/sort-prop-types: error
react/state-in-constructor: error
react/static-property-placement:
- error
- property assignment
react/style-prop-object: error
react/void-dom-elements-no-children: error
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
# Conflicts with Adaptive Card schema.
# react/forbid-prop-types: error
# Rules we want to enable but conflicts with Prettier.
# react/jsx-one-expression-per-line:
# - error
# - allow: literal