forked from Bitcoin-Jungle/bitcoin-jungle-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
56 lines (53 loc) · 1.45 KB
/
.eslintrc.json
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
{
"env": {
"es2021": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react-native/all",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12
},
"plugins": ["react", "react-hooks", "react-native", "@typescript-eslint", "import"],
"rules": {
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "error",
"react/prop-types": "off",
"no-unused-vars": "off", // checked with @typescript-eslint/no-unused-vars
"no-duplicate-imports": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-empty-function": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-void": "error"
},
"settings": {
"react-native/style-sheet-object-names": ["EStyleSheet"],
"react": {
"version": "detect"
}
}
}