forked from LedgerHQ/ledger-live-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
95 lines (95 loc) · 2.44 KB
/
.eslintrc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"parser": "babel-eslint",
"extends": ["airbnb", "plugin:flowtype/recommended", "prettier", "prettier/react"],
"plugins": ["flowtype", "react-hooks"],
"globals": {
"__ENV__": false,
"__DEV__": false,
"__TEST__": false,
"__PROD__": false,
"__SENTRY_URL__": false,
"__GIT_REVISION__": false,
"__PRINT_MODE__": false,
"__GLOBAL_STYLES__": false,
"__APP_VERSION__": false,
"__STORYBOOK_ENV__": false,
"__static": false,
"window": false,
"document": false,
"HTMLDivElement": false,
"ResizeObserver": false,
"jest": false,
"describe": false,
"beforeAll": false,
"afterAll": false,
"beforeEach": false,
"afterEach": false,
"test": false,
"it": false,
"expect": false,
"requestAnimationFrame": false,
"cancelAnimationFrame": false
},
"rules": {
"camelcase": 0,
"global-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-for": 0,
"prefer-destructuring": 0,
"new-cap": 0,
"no-continue": 0,
"no-await-in-loop": 0,
"no-restricted-globals": 0,
"no-unused-expressions": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-return-assign": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-console": 2,
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "vars": "all", "args": "after-used", "ignoreRestSiblings": true }
],
"no-use-before-define": 0,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-void": 0,
"react/forbid-prop-types": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-target-blank": 0,
"react/jsx-no-literals": [1, { "noStrings": false }],
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/no-multi-comp": 0,
"react/sort-comp": [
1,
{
"order": ["static-methods", "lifecycle", "everything-else", "render"]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"import/resolver": {
"babel-module": {}
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"overrides": [
{
"files": ["*stories.js"],
"rules": {
"react/jsx-no-literals": 0
}
}
]
}