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 # React Hooks
- [ ] "exhaustive-deps" - [X] "exhaustive-deps"
- [ ] "rules-of-hooks" - [X] "rules-of-hooks"

View File

@ -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
View File

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

View File

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

View File

@ -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
} }
] ]
} }

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" "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"
] ]
} }