forked from LedgerHQ/ledger-live-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.52 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
parser: "@typescript-eslint/parser",
settings: {
react: { version: "16" },
},
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
plugins: ["@typescript-eslint", "react", "react-hooks", "prettier"],
rules: {
"no-console": ["error", { allow: ["warn", "error"] }],
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
"no-unused-vars": "off",
"import/prefer-default-export": 0,
"no-plusplus": 0,
"no-underscore-dangle": 0,
"prefer-template": 0,
"no-await-in-loop": 0,
"no-restricted-syntax": 0,
"consistent-return": 0,
"no-lonely-if": 0,
"no-use-before-define": 0,
"no-nested-ternary": 0,
"import/no-cycle": 0,
"no-multi-assign": 0,
"guard-for-in": 0,
"no-continue": 0,
"lines-between-class-members": 0,
"prefer-destructuring": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": ["error", { allowDeclarations: true }],
"@typescript-eslint/no-explicit-any": 0,
},
};