-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
35 lines (32 loc) · 978 Bytes
/
eslint.config.mjs
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
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylisticTs from '@stylistic/eslint-plugin-ts'
export default tseslint.config({
files: ['**/*.ts'],
plugins: {
'@stylistic/ts': stylisticTs
},
extends: [
eslint.configs.recommended,
tseslint.configs.recommended,
],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
],
'@typescript-eslint/no-explicit-any': 'off',
'no-irregular-whitespace': 'off',
// stylistic
'@stylistic/ts/indent': ['warn', 4],
'@stylistic/ts/quotes': ['warn', 'single'],
'@stylistic/ts/semi': ['error', 'always'],
'@stylistic/ts/block-spacing': ['warn', 'always'],
},
});