summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-29 09:58:06 -0300
committerSebastian <sebasjm@gmail.com>2022-03-29 10:04:33 -0300
commit3dd1047b085fa7795f322c5829f39208465bff13 (patch)
tree19340ca9420466e7059849dbf7013901733c0fde /.eslintrc.js
parentcb18b9813e5df6e315dfb1827f5f7cf304977390 (diff)
downloadwallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.gz
wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.bz2
wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.zip
added react eslint and fix most of the warns
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js16
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,
+
},
};