-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
33 lines (33 loc) · 952 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
plugins: ['@typescript-eslint', 'github'],
extends: [],
rules: {
'@typescript-eslint/array-type': ['error', { default: 'generic', readonly: 'generic' }],
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'interface',
format: ['PascalCase'],
custom: { regex: '^I[$A-Z]', match: true }
}
],
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
'@typescript-eslint/prefer-nullish-coalescing': [
'error',
{ ignoreMixedLogicalExpressions: true }
],
'github/array-foreach': 'error',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-unreachable': 'error',
'space-before-function-paren': [
'error',
{ anonymous: 'always', named: 'never', asyncArrow: 'always' }
]
}
};