-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (57 loc) · 1.67 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
root: true,
extends: [
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
'semi': ['warn', 'never'],
'no-plusplus': 'off',
'implicit-arrow-linebreak': 'off',
'operator-linebreak': 'off',
'arrow-body-style': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'function-paren-newline': 'off',
'eol-last': 'warn',
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/naming-convention': [
'error', {
'selector': 'interface',
'format': ['PascalCase'],
'custom': {
'regex': 'I[A-Z]',
'match': true
}
}
],
'prefer-const': 'warn',
'max-len': ['warn', { 'code': 125 }],
'dot-notation': 'warn',
'no-continue': 'warn',
'no-dupe-else-if': 'error',
'block-spacing': ['error', 'never'],
'no-spaced-func': 'error',
'object-curly-spacing': ['error', 'always'],
'no-trailing-spaces': ['error', {
'ignoreComments': false,
}],
'quotes': ['warn', 'single'],
'no-return-await': ['error'],
},
}