forked from synonymdev/bitkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (70 loc) · 1.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
globals: {
localStorage: false,
},
rules: {
semi: 'off',
'@typescript-eslint/semi': ['error'],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-console': 0,
'no-empty': ['error', { allowEmptyCatch: true }],
'no-buffer-constructor': 0,
'no-case-declarations': 0,
'no-useless-escape': 0,
'react/jsx-no-duplicate-props': [2, { ignoreCase: true }],
'react-native/no-unused-styles': 1,
'react-native/no-raw-text': 0,
'react/jsx-equals-spacing': [2, 'never'],
'react/no-unsafe': [2, { checkAliases: true }],
'react/jsx-curly-spacing': [
2,
{
when: 'never',
attributes: { allowMultiline: true },
children: true,
},
],
indent: [
2,
'tab',
{ SwitchCase: 1, ignoredNodes: ['ConditionalExpression'] },
],
'object-curly-spacing': [
'error',
'always',
{
objectsInObjects: true,
},
],
'react/jsx-uses-vars': 2,
'react/jsx-wrap-multilines': 2,
'react/jsx-tag-spacing': [
2,
{
closingSlash: 'never',
beforeSelfClosing: 'always',
afterOpening: 'never',
beforeClosing: 'never',
},
],
'react/jsx-indent': [2, 'tab', { indentLogicalExpressions: false }],
'react/jsx-child-element-spacing': 2,
'react/no-unused-prop-types': 2,
'react/prop-types': 0,
'no-undef': 0,
'react/display-name': 0,
'require-atomic-updates': 0,
'no-async-promise-executor': 0,
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'@typescript-eslint/explicit-function-return-type': 'error',
'jest/no-disabled-tests': 0,
},
};