forked from VirtualButFake/zap-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
38 lines (37 loc) · 1.23 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
36
37
38
import typescriptEslint from 'typescript-eslint';
import eslint from '@eslint/js';
export default typescriptEslint.config(
{
ignores: ['**/node_modules/*', '**/out/*']
},
eslint.configs.recommended,
...typescriptEslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['*.mjs'],
defaultProject: "tsconfig.mjs.json"
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
semi: [2, 'always'],
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'no-throw-literal': 1,
'no-unused-vars': 1,
'no-mixed-spaces-and-tabs': 1,
'no-trailing-spaces': 1,
'no-multi-spaces': 1,
'no-multiple-empty-lines': 1,
'no-irregular-whitespace': 1,
'no-unexpected-multiline': 1,
'no-duplicate-case': 1,
'no-unreachable': 1,
},
}
);