10 Commits

Author SHA1 Message Date
8a1a4a502c Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-23 01:06:23 +04:00
0112b8616e Fixed "@typescript-eslint/typedef"
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-23 01:05:55 +04:00
507c2927a4 Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-23 01:00:49 +04:00
700b1ff704 Fixed "@typescript-eslint/typedef"
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-23 00:59:40 +04:00
5a6483ec98 Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 12:09:05 +04:00
65d843d5c2 Corrected TypeScript rules
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 12:07:33 +04:00
0aef29fcbe Bump version
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 11:54:20 +04:00
6cef3fc844 Added some react rules
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 11:53:24 +04:00
f6868cf9b6 Added react-hooks rules
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 11:47:07 +04:00
58e080f2e7 Fixed "object-curly-newline"
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-06-18 11:37:31 +04:00
8 changed files with 51 additions and 19 deletions

View File

@ -1,4 +1,4 @@
# React Hooks
- [ ] "exhaustive-deps"
- [ ] "rules-of-hooks"
- [X] "exhaustive-deps"
- [X] "rules-of-hooks"

View File

@ -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"

14
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@valentineus/eslint-config",
"version": "0.0.17",
"version": "0.0.21",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -1123,6 +1123,13 @@
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"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": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@ -1985,7 +1992,10 @@
"version": "2.17.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.17.0.tgz",
"integrity": "sha512-4Um68vKyyTLzT+EWClgc+nyxSlunlmx8wgCO16RDicwxvccnyBHguoNqxPaJL/YPAdvuAJkqaFPf/BfDojzEZA==",
"dev": true
"dev": true,
"requires": {
"fsevents": "~2.1.2"
}
},
"rollup-plugin-terser": {
"version": "6.1.0",

View File

@ -1,6 +1,6 @@
{
"name": "@valentineus/eslint-config",
"version": "0.0.17",
"version": "0.0.21",
"description": "Personal ESLint configuration",
"main": "index.js",
"repository": "git@code.valentineus.link:eslint-config.git",

View File

@ -454,18 +454,18 @@
{
"ExportDeclaration": {
"consistent": true,
"minProperties": 1,
"minProperties": 5,
"multiline": true
},
"ImportDeclaration": "never",
"ObjectExpression": {
"consistent": true,
"minProperties": 1,
"minProperties": 5,
"multiline": true
},
"ObjectPattern": {
"consistent": true,
"minProperties": 1,
"minProperties": 5,
"multiline": true
}
}
@ -638,4 +638,4 @@
"onlyEquality": false
}
]
}
}

View File

@ -1 +1,8 @@
{}
{
"react-hooks/exhaustive-deps": [
"warn"
],
"react-hooks/rules-of-hooks": [
"error"
]
}

View File

@ -1 +1,16 @@
{}
{
"react/jsx-boolean-value": [
"error",
"always"
],
"react/jsx-fragments": [
"error",
"element"
],
"react/no-unused-prop-types": [
"warn",
{
"skipShapeProps": false
}
]
}

View File

@ -133,7 +133,7 @@
"error"
],
"@typescript-eslint/no-unsafe-member-access": [
"error"
"warn"
],
"@typescript-eslint/no-unsafe-return": [
"error"
@ -167,7 +167,7 @@
"error"
],
"@typescript-eslint/prefer-readonly-parameter-types": [
"error",
"warn",
{
"checkParameterProperties": true
}
@ -249,10 +249,10 @@
"arrayDestructuring": true,
"arrowParameter": true,
"memberVariableDeclaration": true,
"objectDestructuring": true,
"objectDestructuring": false,
"parameter": true,
"propertyDeclaration": true,
"variableDeclaration": true,
"variableDeclaration": false,
"variableDeclarationIgnoreFunction": false
}
],
@ -289,4 +289,4 @@
"space-before-function-paren": [
"off"
]
}
}