-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheslint.config.mjs
46 lines (45 loc) · 1.36 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
39
40
41
42
43
44
45
46
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
export default tseslint.config(
{
files: ['**/*.{ts,tsx,cts,mts,js,cjs,mjs}'],
},
{
ignores: ['**/node_modules/**', '.yarn/', 'eslint.config.mjs', 'run/**/*.js', 'avd/'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked, // see https://typescript-eslint.io/getting-started/typed-linting/
{
languageOptions: {
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false,
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
globals: globals.node,
},
},
{
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
caughtErrors: 'none',
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
}
);