This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (55 loc) · 1.77 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
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'alloy',
'alloy/typescript',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
semi: 'off',
'comma-dangle': ['error', 'always-multiline'],
'switch-colon-spacing': ['error', { 'after': true, 'before': false }],
quotes: ['error', 'single'],
indent: ['error', 2, { SwitchCase: 1 }],
'eol-last': ['error', 'always'],
'space-infix-ops': 'off',
'max-nested-callbacks': 'off',
'max-params': 'off',
'prefer-regex-literals': 'off',
'no-useless-call': 'off',
'complexity': 'off',
'no-new-func': 'off',
'comma-spacing': ['error', { 'before': false, 'after': true }],
'key-spacing': [2, { 'beforeColon': false, 'afterColon': true, 'mode': 'strict' }],
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxEOF': 1 }],
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/space-infix-ops': ['error', { 'int32Hint': true }],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/type-annotation-spacing': [
'error',
{
'before': true,
'after': true,
'overrides': {
'colon': {
'before': false,
'after': true,
},
},
},
],
},
};