forked from LedgerHQ/ledger-live-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (51 loc) · 1.28 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
module.exports = {
settings: {
react: { version: "16" },
},
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"prettier",
"prettier/react",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "babel-eslint",
plugins: ["flowtype", "react-hooks", "prettier"],
rules: {
"no-console": ["error", { allow: ["warn", "error"] }],
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"flowtype/generic-spacing": 0,
"flowtype/space-after-type-colon": 0,
"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",
},
};