-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (31 loc) · 1.13 KB
/
.eslintrc.js
File metadata and controls
32 lines (31 loc) · 1.13 KB
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
/* eslint-disable */
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 2019,
},
rules: {
indent: ['error', 2, { 'SwitchCase': 1 }],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'linebreak-style': ['error', 'unix'],
'no-trailing-spaces': ['error'],
'no-multi-spaces': ['error'],
'key-spacing': ['error'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'space-infix-ops': ['error'],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
'multiline': { 'delimiter': 'semi' },
'singleline': { 'delimiter': 'comma' }
}],
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/camelcase': 0,
},
};