-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
25 lines (25 loc) · 822 Bytes
/
.eslintrc.cjs
File metadata and controls
25 lines (25 loc) · 822 Bytes
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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'plugin:@typescript-eslint/recommended'
],
rules: {
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'quotes': ['error', 'single'],
'no-trailing-spaces': ['error'],
'eol-last': ['error', 'always'],
'curly': ['error', 'multi-line', 'consistent'],
'indent': ['error', 'tab', { 'SwitchCase': 1, 'ignoredNodes': ['TemplateLiteral *'] }],
'semi': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1}],
'comma-dangle': ['error', 'never'],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-ts-comment': 'off'
}
};