-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
30 lines (30 loc) · 1.01 KB
/
index.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 = {
extends: [
'standard-with-typescript'
],
rules: {
'no-var': 'error',
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'consistent-return': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
'no-func-assign': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-unused-labels': 'error',
'no-console': 'error',
'max-depth': 'error'
},
overrides: [
{
// unit tests
files: [ '**/*.spec.*', '**/*.test.*' ],
rules: {
// unit tests need to create mocks easily, relax objectLiteralTypeAssertions
'@typescript-eslint/consistent-type-assertions': [ 'error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' } ]
}
}
]
}