1
0
mirror of https://github.com/SomboChea/ui synced 2024-12-25 13:44:31 +07:00

chore: add react hooks eslint conf

This commit is contained in:
Juan Picado @jotadeveloper 2019-08-11 07:24:54 +02:00
parent 542212a479
commit 502c0903ab
No known key found for this signature in database
GPG Key ID: 15AA875EF3768142
3 changed files with 10 additions and 1 deletions

View File

@ -13,7 +13,8 @@
"prettier",
"verdaccio",
"jsx-a11y",
"codeceptjs"
"codeceptjs",
"react-hooks"
],
"settings": {
"react": {
@ -107,6 +108,8 @@
2,
"always"
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"verdaccio/jsx-no-style": ["warn"],
"verdaccio/jsx-spread": ["warn"],
"jest/expect-expect": 0,

View File

@ -45,6 +45,7 @@
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.0",
"eslint-plugin-react": "7.14.3",
"eslint-plugin-react-hooks": "1.7.0",
"eslint-plugin-verdaccio": "2.0.0",
"file-loader": "4.2.0",
"friendly-errors-webpack-plugin": "1.7.0",

View File

@ -5508,6 +5508,11 @@ eslint-plugin-prettier@3.1.0:
dependencies:
prettier-linter-helpers "^1.0.0"
eslint-plugin-react-hooks@1.7.0:
version "1.7.0"
resolved "https://registry.verdaccio.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
eslint-plugin-react@7.14.3:
version "7.14.3"
resolved "https://registry.verdaccio.org/eslint-plugin-react/-/eslint-plugin-react-7.14.3.tgz#911030dd7e98ba49e1b2208599571846a66bdf13"