Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0aef29fcbe | |||
6cef3fc844 | |||
f6868cf9b6 | |||
58e080f2e7 |
@ -1,4 +1,4 @@
|
|||||||
# React Hooks
|
# React Hooks
|
||||||
|
|
||||||
- [ ] "exhaustive-deps"
|
- [X] "exhaustive-deps"
|
||||||
- [ ] "rules-of-hooks"
|
- [X] "rules-of-hooks"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
- [ ] "forbid-foreign-prop-types"
|
- [ ] "forbid-foreign-prop-types"
|
||||||
- [ ] "forbid-prop-types"
|
- [ ] "forbid-prop-types"
|
||||||
- [ ] "function-component-definition"
|
- [ ] "function-component-definition"
|
||||||
- [ ] "jsx-boolean-value"
|
- [X] "jsx-boolean-value"
|
||||||
- [ ] "jsx-child-element-spacing"
|
- [ ] "jsx-child-element-spacing"
|
||||||
- [ ] "jsx-closing-bracket-location"
|
- [ ] "jsx-closing-bracket-location"
|
||||||
- [ ] "jsx-closing-tag-location"
|
- [ ] "jsx-closing-tag-location"
|
||||||
@ -21,7 +21,7 @@
|
|||||||
- [ ] "jsx-equals-spacing"
|
- [ ] "jsx-equals-spacing"
|
||||||
- [ ] "jsx-filename-extension"
|
- [ ] "jsx-filename-extension"
|
||||||
- [ ] "jsx-first-prop-new-line"
|
- [ ] "jsx-first-prop-new-line"
|
||||||
- [ ] "jsx-fragments"
|
- [X] "jsx-fragments"
|
||||||
- [ ] "jsx-handler-names"
|
- [ ] "jsx-handler-names"
|
||||||
- [ ] "jsx-indent"
|
- [ ] "jsx-indent"
|
||||||
- [ ] "jsx-indent-props"
|
- [ ] "jsx-indent-props"
|
||||||
@ -69,7 +69,7 @@
|
|||||||
- [ ] "no-unescaped-entities"
|
- [ ] "no-unescaped-entities"
|
||||||
- [ ] "no-unknown-property"
|
- [ ] "no-unknown-property"
|
||||||
- [ ] "no-unsafe"
|
- [ ] "no-unsafe"
|
||||||
- [ ] "no-unused-prop-types"
|
- [X] "no-unused-prop-types"
|
||||||
- [ ] "no-unused-state"
|
- [ ] "no-unused-state"
|
||||||
- [ ] "no-will-update-set-state"
|
- [ ] "no-will-update-set-state"
|
||||||
- [ ] "prefer-es6-class"
|
- [ ] "prefer-es6-class"
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@valentineus/eslint-config",
|
"name": "@valentineus/eslint-config",
|
||||||
"version": "0.0.17",
|
"version": "0.0.18",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@valentineus/eslint-config",
|
"name": "@valentineus/eslint-config",
|
||||||
"version": "0.0.17",
|
"version": "0.0.18",
|
||||||
"description": "Personal ESLint configuration",
|
"description": "Personal ESLint configuration",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "git@code.valentineus.link:eslint-config.git",
|
"repository": "git@code.valentineus.link:eslint-config.git",
|
||||||
|
@ -454,18 +454,18 @@
|
|||||||
{
|
{
|
||||||
"ExportDeclaration": {
|
"ExportDeclaration": {
|
||||||
"consistent": true,
|
"consistent": true,
|
||||||
"minProperties": 1,
|
"minProperties": 5,
|
||||||
"multiline": true
|
"multiline": true
|
||||||
},
|
},
|
||||||
"ImportDeclaration": "never",
|
"ImportDeclaration": "never",
|
||||||
"ObjectExpression": {
|
"ObjectExpression": {
|
||||||
"consistent": true,
|
"consistent": true,
|
||||||
"minProperties": 1,
|
"minProperties": 5,
|
||||||
"multiline": true
|
"multiline": true
|
||||||
},
|
},
|
||||||
"ObjectPattern": {
|
"ObjectPattern": {
|
||||||
"consistent": true,
|
"consistent": true,
|
||||||
"minProperties": 1,
|
"minProperties": 5,
|
||||||
"multiline": true
|
"multiline": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,8 @@
|
|||||||
{}
|
{
|
||||||
|
"react-hooks/exhaustive-deps": [
|
||||||
|
"warn"
|
||||||
|
],
|
||||||
|
"react-hooks/rules-of-hooks": [
|
||||||
|
"error"
|
||||||
|
]
|
||||||
|
}
|
@ -1 +1,16 @@
|
|||||||
{}
|
{
|
||||||
|
"react/jsx-boolean-value": [
|
||||||
|
"error",
|
||||||
|
"always"
|
||||||
|
],
|
||||||
|
"react/jsx-fragments": [
|
||||||
|
"error",
|
||||||
|
"element"
|
||||||
|
],
|
||||||
|
"react/no-unused-prop-types": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"skipShapeProps": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user