-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
42 lines (42 loc) · 1.24 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
module.exports = {
env: {
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
'mocha-no-only',
],
rules: {
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: { delimiter: 'none' },
singleline: { delimiter: 'comma', requireLast: false },
multilineDetection: 'last-member',
}],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/semi': ['error', 'never'],
'array-bracket-spacing': ['error', 'never', { singleValue: false }],
'comma-dangle': ['error', 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'no-multi-spaces': ['error'],
'no-param-reassign': 'error',
'no-unused-vars': 'off',
'object-curly-spacing': ['error', 'always'],
'quote-props': ['error', 'as-needed'],
'space-infix-ops': ['error'],
'mocha-no-only/mocha-no-only': ['error'],
indent: ['error', 2],
quotes: ['error', 'single'],
semi: 'off',
},
}