forked from Pseudonian/Ultra-Progress-Bar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
76 lines (73 loc) · 3.11 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 99,
sourceType: 'module'
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
// style rules
'no-extra-semi': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'max-len': ['error', { 'code': 120 }],
'quotes': ['error', 'single'],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'array-bracket-spacing': ['error', 'never'],
'arrow-spacing': 'error',
'brace-style': 'error',
'comma-dangle': ['error', 'never'],
'comma-style': ['error', 'last'],
'computed-property-spacing': ['error', 'never'],
'dot-location': ['error', 'property'],
'func-call-spacing': ['error', 'never'],
'generator-star-spacing': ['error', { 'before': true, 'after': true }],
'key-spacing': ['error', { 'beforeColon': false }],
'keyword-spacing': ['error', { 'before': true }],
'max-statements-per-line': ['error', { 'max': 1 }],
'newline-per-chained-call': ['error', { 'ignoreChainWithDepth': 3 }],
'no-trailing-spaces': 'error',
'no-whitespace-before-property': 'error',
'@typescript-eslint/semi': ['error', 'never'],
'no-empty': 'off',
'no-console': 'error',
'no-loss-of-precision': 'error',
'no-promise-executor-return': 'off',
'no-unreachable-loop': 'error',
'no-unsafe-optional-chaining': 'error',
'no-useless-backreference': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-unsafe-assignment': 'error',
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-member-access': 'error',
'@typescript-eslint/no-unsafe-return': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error'
}
};