-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
30 lines (30 loc) · 1009 Bytes
/
.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
29
30
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
rules: {
'quotes': [1, 'single'],
'semi': [1, 'never'],
'keyword-spacing': ['error', { before: true, after: true }],
'arrow-spacing': ['error', { before: true, after: true }],
'space-before-blocks': 'error',
'no-unused-vars': 0,
'space-infix-ops': 2,
'no-var': 0,
'prefer-const': 2,
'object-shorthand': 2,
'no-trailing-spaces': 2,
'no-undef': 0,
'space-unary-ops': 1,
'no-irregular-whitespace': 1,
'no-multi-spaces': 1,
'comma-spacing': [1, { 'before': false, 'after': true }],
'no-whitespace-before-property': 1,
'no-empty': 0,
'no-redeclare': 0,
'no-inner-declarations': 0,
'@typescript-eslint/no-explicit-any': 0,
}
}