-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
39 lines (38 loc) · 1.31 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
import stylistic from '@stylistic/eslint-plugin';
import parserTs from '@typescript-eslint/parser';
export default [{
ignores: ['dist'],
plugins: {
'@stylistic': stylistic,
},
languageOptions: {
parser: parserTs,
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'@stylistic/semi': ['warn'],
'@stylistic/quotes': ['warn', 'single'],
'@stylistic/indent': ['warn', 2, {SwitchCase: 1}],
'@stylistic/comma-dangle': ['warn', 'always-multiline'],
'@stylistic/dot-notation': 'off',
'eqeqeq': 'warn',
'curly': ['warn', 'all'],
'@stylistic/brace-style': ['warn'],
'prefer-arrow-callback': ['warn'],
'@stylistic/max-len': ['warn', 140],
'no-console': ['warn'],
'@stylistic/no-non-null-assertion': ['off'],
'@stylistic/comma-spacing': ['error'],
'@stylistic/no-multi-spaces': ['warn', {ignoreEOLComments: true}],
'@stylistic/no-trailing-spaces': ['warn'],
'@stylistic/lines-between-class-members': ['warn', 'always', {exceptAfterSingleLine: true}],
'@stylistic/explicit-function-return-type': 'off',
'@stylistic/no-non-null-assertion': 'off',
'@stylistic/explicit-module-boundary-types': 'off',
'@stylistic/member-delimiter-style': ['warn'],
'no-undef': ['error'],
'no-unused-vars': ['error'],
'no-empty': ['error'],
},
}];