-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
66 lines (66 loc) · 1.56 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
module.exports = {
extends: [
'universe',
'universe/shared/typescript-analysis',
'plugin:prettier/recommended',
],
plugins: ['prettier', 'detox'],
ignorePatterns: ['.eslintrc.js'],
rules: {
'prettier/prettier': [
'error',
{
arrowParens: 'avoid',
bracketSameLine: false,
singleQuote: true,
jsxSingleQuote: true,
trailingComma: 'all',
endOfLine: 'auto',
},
],
'import/extensions': 'off',
'import/order': [
'error',
{
groups: [['external', 'builtin', 'internal', 'type']],
pathGroups: [
{
pattern: 'react-native',
group: 'external',
position: 'before',
},
],
},
],
'padded-blocks': 'off',
'no-underscore-dangle': 'off',
'max-len': [1, 1000, 4],
quotes: [2, 'single'],
'linebreak-style': 0,
semi: [1, 'always'],
'no-console': [0],
'no-loop-func': [0],
'new-cap': [0],
'no-trailing-spaces': [0],
'no-param-reassign': [0],
'func-names': [0],
'comma-dangle': [0],
'no-unused-expressions': [0],
'block-scoped-var': [0],
'no-nested-ternary': 'off',
'no-multiple-empty-lines': [2, { max: 2 }],
'import/newline-after-import': ['error', { count: 1 }],
'import/no-unresolved': 'off',
'no-use-before-define': 'off',
'prefer-arrow-callback': 'off',
camelcase: 'off',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.d.ts'],
parserOptions: {
project: './tsconfig.json',
},
},
],
};