From 8a2ac706cacb0e76fcf521854724b701f30108bc Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 3 Aug 2019 21:08:50 +0530 Subject: [PATCH] Disable some ts rules in eslint Array rule doesn't make sense to me\ Prop-types, in my opinion, is not needed when components are types anyway. And this is also a library, which doesn't export any component as such --- .eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index c4c9d03..a11d99e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,8 +23,10 @@ module.exports = { rules: { "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-member-accessibility": "off", + "@typescript-eslint/array-type": "off", "react-hooks/exhaustive-deps": "warn", - "react-hooks/rules-of-hooks": "error" + "react-hooks/rules-of-hooks": "error", + "react/prop-types": "off" }, overrides: [ {