-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patheslint.config.mjs
35 lines (34 loc) · 1.16 KB
/
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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin-ts';
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
{
ignores: ['docs/*', 'declarations/*', 'index.d.ts', 'index.js'],
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['*.mjs', 'test/*.ts', 'subtls-wsproxy/*.ts'],
defaultProject: 'tsconfig.json',
},
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
'@stylistic': stylistic,
},
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@stylistic/quotes': ['warn', 'single', { avoidEscape: true }],
'@stylistic/semi': 'warn',
}
}
);