-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.cjs
53 lines (53 loc) · 1.3 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'@react-native',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
rules: {
'prettier/prettier': 0,
semi: ['error', 'never'],
'@typescript-eslint/quotes': ['error', 'single'],
quotes: ['error', 'single'],
'react-native/no-inline-styles': 0,
'jsx-quotes': ['error', 'prefer-single'],
'no-shadow': 0,
'no-catch-shadow': 0,
indent: ['error', 2],
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'react/react-in-jsx-scope': 2,
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'import/order': [
'error',
{
groups: [
['builtin', 'external'],
'internal',
['sibling', 'parent', 'index'],
'object',
'type',
],
pathGroups: [
{
pattern: '@berty/**',
group: 'internal',
position: 'before',
},
],
pathGroupsExcludedImportTypes: [],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
globals: {
JSX: 'readonly',
},
}