Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
8a1a4a502c | |||
0112b8616e | |||
507c2927a4 | |||
700b1ff704 | |||
5a6483ec98 | |||
65d843d5c2 | |||
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"
|
||||||
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@valentineus/eslint-config",
|
"name": "@valentineus/eslint-config",
|
||||||
"version": "0.0.17",
|
"version": "0.0.21",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -1123,6 +1123,13 @@
|
|||||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"fsevents": {
|
||||||
|
"version": "2.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
|
||||||
|
"integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"function-bind": {
|
"function-bind": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||||
@ -1985,7 +1992,10 @@
|
|||||||
"version": "2.17.0",
|
"version": "2.17.0",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.17.0.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.17.0.tgz",
|
||||||
"integrity": "sha512-4Um68vKyyTLzT+EWClgc+nyxSlunlmx8wgCO16RDicwxvccnyBHguoNqxPaJL/YPAdvuAJkqaFPf/BfDojzEZA==",
|
"integrity": "sha512-4Um68vKyyTLzT+EWClgc+nyxSlunlmx8wgCO16RDicwxvccnyBHguoNqxPaJL/YPAdvuAJkqaFPf/BfDojzEZA==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"fsevents": "~2.1.2"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"rollup-plugin-terser": {
|
"rollup-plugin-terser": {
|
||||||
"version": "6.1.0",
|
"version": "6.1.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@valentineus/eslint-config",
|
"name": "@valentineus/eslint-config",
|
||||||
"version": "0.0.17",
|
"version": "0.0.21",
|
||||||
"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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -638,4 +638,4 @@
|
|||||||
"onlyEquality": false
|
"onlyEquality": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -133,7 +133,7 @@
|
|||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
"@typescript-eslint/no-unsafe-member-access": [
|
"@typescript-eslint/no-unsafe-member-access": [
|
||||||
"error"
|
"warn"
|
||||||
],
|
],
|
||||||
"@typescript-eslint/no-unsafe-return": [
|
"@typescript-eslint/no-unsafe-return": [
|
||||||
"error"
|
"error"
|
||||||
@ -167,7 +167,7 @@
|
|||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
"@typescript-eslint/prefer-readonly-parameter-types": [
|
"@typescript-eslint/prefer-readonly-parameter-types": [
|
||||||
"error",
|
"warn",
|
||||||
{
|
{
|
||||||
"checkParameterProperties": true
|
"checkParameterProperties": true
|
||||||
}
|
}
|
||||||
@ -249,10 +249,10 @@
|
|||||||
"arrayDestructuring": true,
|
"arrayDestructuring": true,
|
||||||
"arrowParameter": true,
|
"arrowParameter": true,
|
||||||
"memberVariableDeclaration": true,
|
"memberVariableDeclaration": true,
|
||||||
"objectDestructuring": true,
|
"objectDestructuring": false,
|
||||||
"parameter": true,
|
"parameter": true,
|
||||||
"propertyDeclaration": true,
|
"propertyDeclaration": true,
|
||||||
"variableDeclaration": true,
|
"variableDeclaration": false,
|
||||||
"variableDeclarationIgnoreFunction": false
|
"variableDeclarationIgnoreFunction": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -289,4 +289,4 @@
|
|||||||
"space-before-function-paren": [
|
"space-before-function-paren": [
|
||||||
"off"
|
"off"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user