-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc.js
30 lines (30 loc) · 995 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 = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['airbnb-base', 'plugin:@typescript-eslint/recommended'],
rules: {
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'prefer-destructuring': 'off',
'no-param-reassign': 'warn',
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'no-return-await': 'off',
'operator-linebreak': ['error', 'after'],
'object-curly-newline': ['error', {
multiline: true,
minProperties: 5,
consistent: true,
}],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
};