forked from chramos/react-native-skeleton-placeholder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (28 loc) · 908 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
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'simple-import-sort', 'react-native'],
ignorePatterns: ['lib/**'],
rules: {
'react-native/no-unused-styles': 2,
curly: ['error', 'multi-or-nest', 'consistent'],
'no-alert': 'error',
'no-else-return': 'error',
'no-plusplus': 'error',
'no-underscore-dangle': 'error',
'no-unneeded-ternary': 'error',
'no-var': 'error',
'one-var': ['error', 'never'],
'object-shorthand': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-object-spread': 'error',
'prefer-template': 'error',
'react-hooks/exhaustive-deps': 'warn',
'spaced-comment': 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'no-duplicate-imports': 'error',
},
};