-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (40 loc) · 884 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
36
37
38
39
40
41
42
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-typescript/base',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
// No default exports
'import/no-default-export': 'error',
'import/prefer-default-export': 'off',
// Enforce import order and no spaces
'import/order': [
'error',
{
alphabetize: { order: 'asc', caseInsensitive: true },
'newlines-between': 'never',
},
],
// Sort import members
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
},
],
},
env: {
node: true,
es6: true,
},
}