diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-29 09:58:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-29 10:04:33 -0300 |
commit | 3dd1047b085fa7795f322c5829f39208465bff13 (patch) | |
tree | 19340ca9420466e7059849dbf7013901733c0fde /.eslintrc.js | |
parent | cb18b9813e5df6e315dfb1827f5f7cf304977390 (diff) | |
download | wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.xz |
added react eslint and fix most of the warns
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 5d6ba1e72..01e64163d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,12 +1,23 @@ module.exports = { root: true, parser: "@typescript-eslint/parser", - plugins: ["import","@typescript-eslint"], + plugins: ["import","@typescript-eslint", + "react", + "react-hooks", + ], extends: [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", ], + settings: { + react: { + pragma: 'h', + version: '16.0' + } + }, rules: { "no-constant-condition": ["error", { "checkLoops": false }], "prefer-const": ["warn", { destructuring: "all" }], @@ -25,5 +36,8 @@ module.exports = { { functions: false, classes: false }, ], "import/extensions": ["error", "ignorePackages"], + "react/no-unknown-property": 0, + "react/prop-types": 0, + }, }; |