summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 23:32:01 +0530
commit47787c0b0b846d5f4a057661efdd05d8786032f1 (patch)
tree3a3d58a5ebad8af584de6a6cd882c2019f71dffa /.eslintrc.js
parentf36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (diff)
downloadwallet-core-47787c0b0b846d5f4a057661efdd05d8786032f1.tar.gz
wallet-core-47787c0b0b846d5f4a057661efdd05d8786032f1.tar.bz2
wallet-core-47787c0b0b846d5f4a057661efdd05d8786032f1.zip
make linter less grumpy
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js29
1 files changed, 21 insertions, 8 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index acc5305f4..c3e588250 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,13 +1,26 @@
module.exports = {
root: true,
- parser: '@typescript-eslint/parser',
- plugins: [
- '@typescript-eslint',
- ],
+ parser: "@typescript-eslint/parser",
+ plugins: ["@typescript-eslint"],
extends: [
- 'eslint:recommended',
- 'plugin:@typescript-eslint/eslint-recommended',
- 'plugin:@typescript-eslint/recommended',
+ "eslint:recommended",
+ "plugin:@typescript-eslint/eslint-recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:react/recommended",
],
- rules: {},
+ rules: {
+ "no-constant-condition": ["error", { "checkLoops": false }],
+ "prefer-const": ["warn", { destructuring: "all" }],
+ "@typescript-eslint/camelcase": "off",
+ "@typescript-eslint/no-explicit-any": "off",
+ "@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
+ "@typescript-eslint/explicit-function-return-type": [
+ "warn",
+ { allowExpressions: true },
+ ],
+ "@typescript-eslint/no-use-before-define": [
+ "error",
+ { functions: false, classes: false },
+ ],
+ },
};