-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.15 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
module.exports = {
env: {
node: true,
es6: true,
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'prettier',
],
rules: {
'quotes': ['error', 'single'],
'@typescript-eslint/no-var-requires': 0,
'jest/no-disabled-tests': 0,
'semi': ['error', 'always'],
'eol-last': ['error', 'always'],
'import/order': ['error', {
'pathGroups': [
{
'pattern': 'react',
'group': 'builtin',
'position': 'before'
}
],
'pathGroupsExcludedImportTypes': ['react'],
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'alphabetize': {
'order': 'asc',
'caseInsensitive': true,
},
'newlines-between': 'always',
}],
'import/no-duplicates': 'error',
},
ignorePatterns: ['web-build', '__mocks__'],
};