-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.cjs
37 lines (37 loc) · 922 Bytes
/
.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
module.exports = {
extends: '@terrestris/eslint-config-typescript-react',
plugins: ['import'],
rules: {
'dot-notation': 'off',
'@typescript-eslint/member-ordering': 'off',
'object-property-newline': 'error',
'object-curly-newline': 'error',
'import/no-unresolved': 'off',
'import/named': 'off',
'import/order': ['warn', {
'groups': [
'builtin',
'external',
'parent',
'sibling',
'index',
'object'
],
'pathGroups': [{
'pattern': 'react',
'group': 'external',
'position': 'before'
}, {
'pattern': '@terrestris/**',
'group': 'external',
'position': 'after'
}],
'pathGroupsExcludedImportTypes': ['react'],
'newlines-between': 'always-and-inside-groups',
'alphabetize': {
'order': 'asc',
'caseInsensitive': true
}
}]
}
};