-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.84 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
module.exports = {
root: true,
extends: '@react-native-community',
plugins: ['react-hooks'],
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
radix: 0,
'max-len': [
'error',
{
code: 120,
tabWidth: 2,
comments: 100,
ignoreUrls: true,
ignoreRegExpLiterals: true,
ignorePattern: '^import\\W.*'
}
],
curly: 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': 'error',
'comma-dangle': ['error', 'never'],
'react/self-closing-comp': ['error'],
'no-mixed-spaces-and-tabs': 0,
'no-shadow': 0,
'no-unused-vars': ['error', { vars: 'local', args: 'after-used' }],
'no-duplicate-imports': 'error',
'no-var': 'error',
'no-const-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty': 'error',
'no-sparse-arrays': 'error',
'no-multi-spaces': 'error',
'no-useless-escape': 'error',
'no-extra-boolean-cast': 'error',
'no-alert': 'error',
'block-scoped-var': 'error',
'dot-notation': 0,
'array-bracket-spacing': ['error', 'never'],
'prefer-arrow-callback': 'error',
'template-curly-spacing': 'error',
'default-case': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-style': 'error',
'computed-property-spacing': 'error',
'eol-last': 'error',
'func-call-spacing': ['error', 'never'],
'func-style': ['off', 'expression', { allowArrowFunctions: true }],
'key-spacing': ['error', { beforeColon: false }],
'keyword-spacing': ['error', { before: true }],
'jsx-quotes': ['error', 'prefer-single'],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react-native/no-inline-styles': 'error'
}
}