-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
41 lines (41 loc) · 1.16 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
module.exports = {
env: {
'jest/globals': true,
browser: true,
},
root: true,
extends: ['prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest', 'import'],
globals: {
JSX: true,
node: true,
es6: true,
jest: true,
},
rules: {
'react-native/no-inline-styles': 0,
'prettier/prettier': 0,
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', ['index', 'sibling', 'parent']],
'newlines-between': 'always',
pathGroupsExcludedImportTypes: ['builtin'],
pathGroups: [
{
pattern: 'shared/**',
group: 'internal',
position: 'after',
},
{
pattern: 'src/**',
group: 'internal',
position: 'after',
},
],
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
},
};