Add eslint-plugin-react-hooks (#215)

This commit is contained in:
Pavel 2022-02-02 15:59:40 +01:00 committed by GitHub
parent 2e028c468e
commit 509a3a3d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,7 @@
"plugin:eslint-comments/recommended", "plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:import/typescript", "plugin:import/typescript",
"plugin:react-hooks/recommended",
"prettier" "prettier"
], ],
"globals": { "BigInt": true, "console": true, "WebAssembly": true }, "globals": { "BigInt": true, "console": true, "WebAssembly": true },

View File

@ -36,6 +36,7 @@
"chai": "^4.3.4", "chai": "^4.3.4",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-plugin-react-hooks": "^4.3.0",
"jsdom": "^16.7.0", "jsdom": "^16.7.0",
"jsdom-global": "^3.0.2", "jsdom-global": "^3.0.2",
"mocha": "^9.0.3", "mocha": "^9.0.3",

View File

@ -1324,6 +1324,7 @@ __metadata:
copyfiles: ^2.4.1 copyfiles: ^2.4.1
emoji-mart: ^3.0.1 emoji-mart: ^3.0.1
eslint: ^7.32.0 eslint: ^7.32.0
eslint-plugin-react-hooks: ^4.3.0
html-entities: ^2.3.2 html-entities: ^2.3.2
js-sha3: ^0.8.0 js-sha3: ^0.8.0
jsdom: ^16.7.0 jsdom: ^16.7.0
@ -4255,6 +4256,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"eslint-plugin-react-hooks@npm:^4.3.0":
version: 4.3.0
resolution: "eslint-plugin-react-hooks@npm:4.3.0"
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
checksum: 0ba1566ba0780bbc75a5921f49188edf232db2085ab32c8d3889592f0db9d6fadc97fcf639775e0101dec6b5409ca3c803ec44213b90c8bacaf0bdf921871c2e
languageName: node
linkType: hard
"eslint-plugin-react@npm:^7.24.0": "eslint-plugin-react@npm:^7.24.0":
version: 7.26.0 version: 7.26.0
resolution: "eslint-plugin-react@npm:7.26.0" resolution: "eslint-plugin-react@npm:7.26.0"