-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
28 lines (28 loc) · 1.01 KB
/
.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
root: true,
rules: {
'brace-style': ['error', 'stroustrup', {'allowSingleLine': true}],
'comma-dangle': ['error', 'always-multiline'],
curly: ['error'],
eqeqeq: ['error', 'always', {null: 'ignore'}],
indent: ['error', 4, {SwitchCase: 1}],
'linebreak-style': ['error', 'unix'],
'no-constant-condition': ['error', {checkLoops: false}],
'no-control-regex': ['off'],
'no-empty': ['error', {allowEmptyCatch: true}],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-unused-vars': ['error', {'args': 'none'}],
},
}