-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.31 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 = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'no-loss-of-precision': 'error',
'no-promise-executor-return': 'error',
'no-useless-backreference': 'error',
'require-atomic-updates': 'error',
'default-param-last': 'error',
'default-case-last': 'error',
'eqeqeq': 'error',
'dot-location': ['error', 'property'],
'guard-for-in': 'error',
'no-caller': 'error',
'no-implicit-coercion': 'error',
'no-floating-decimal': 'error',
'no-implied-eval': 'error',
'no-multi-spaces': 'error',
'no-octal-escape': 'error',
'no-sequences': 'error',
'no-unused-expressions': 'error',
'no-useless-call': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'radix': 'error',
'array-bracket-spacing': ['error', 'never'],
'comma-dangle': ['error', 'only-multiline'],
'comma-spacing': 'error',
'eol-last': 'error',
'semi': 'error',
'semi-spacing': 'error',
'semi-style': 'error',
'@typescript-eslint/no-explicit-any': 'off',
},
};