-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
59 lines (58 loc) · 1.18 KB
/
eslint.config.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
import js from '@eslint/js';
import ts from 'typescript-eslint';
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
{
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
globals: {
process: 'readonly',
},
},
rules: {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'no-else-return': 'error',
'no-trailing-spaces': 'error',
'no-use-before-define': 'off',
'indent': [
'error',
2,
{
'SwitchCase': 1,
},
],
'semi': [
'error',
'always',
],
'space-before-function-paren': [
'error',
{
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'always',
},
],
'comma-dangle': [
'error',
'always-multiline',
],
'no-unused-vars': 'off',
'quotes': [
'error',
'single',
],
'no-multiple-empty-lines': [
'error',
{
'max': 1,
'maxBOF': 0,
'maxEOF': 0,
},
],
},
},
);