Added some react rules
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
f6868cf9b6
commit
6cef3fc844
@ -11,7 +11,7 @@
|
||||
- [ ] "forbid-foreign-prop-types"
|
||||
- [ ] "forbid-prop-types"
|
||||
- [ ] "function-component-definition"
|
||||
- [ ] "jsx-boolean-value"
|
||||
- [X] "jsx-boolean-value"
|
||||
- [ ] "jsx-child-element-spacing"
|
||||
- [ ] "jsx-closing-bracket-location"
|
||||
- [ ] "jsx-closing-tag-location"
|
||||
@ -21,7 +21,7 @@
|
||||
- [ ] "jsx-equals-spacing"
|
||||
- [ ] "jsx-filename-extension"
|
||||
- [ ] "jsx-first-prop-new-line"
|
||||
- [ ] "jsx-fragments"
|
||||
- [X] "jsx-fragments"
|
||||
- [ ] "jsx-handler-names"
|
||||
- [ ] "jsx-indent"
|
||||
- [ ] "jsx-indent-props"
|
||||
@ -69,7 +69,7 @@
|
||||
- [ ] "no-unescaped-entities"
|
||||
- [ ] "no-unknown-property"
|
||||
- [ ] "no-unsafe"
|
||||
- [ ] "no-unused-prop-types"
|
||||
- [X] "no-unused-prop-types"
|
||||
- [ ] "no-unused-state"
|
||||
- [ ] "no-will-update-set-state"
|
||||
- [ ] "prefer-es6-class"
|
||||
|
@ -1 +1,16 @@
|
||||
{}
|
||||
{
|
||||
"react/jsx-boolean-value": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"react/jsx-fragments": [
|
||||
"error",
|
||||
"element"
|
||||
],
|
||||
"react/no-unused-prop-types": [
|
||||
"warn",
|
||||
{
|
||||
"skipShapeProps": false
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user