-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (33 loc) · 947 Bytes
/
.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
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// Format
quotes: [2, 'single'],
semi: [2, 'always'],
// 'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-unused-vars': ['warn', { vars: 'all' }],
// react native
'react-native/no-unused-styles': 2,
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 2,
// import
// 'import/order': [
// 2,
// {
// groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
// 'newlines-between': 'always-and-inside-groups',
// },
// ],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-undef': 'off',
},
},
],
};