-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patheslint.config.js
More file actions
58 lines (56 loc) · 1.69 KB
/
eslint.config.js
File metadata and controls
58 lines (56 loc) · 1.69 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
import js from '@eslint/js';
import globals from 'globals';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
const tsRecommendedRules = tsPlugin.configs.recommended?.rules ?? {};
export default [
{
ignores: [
'dist/**',
'dist-*/**',
'coverage/**',
'node_modules/**',
'*.bak',
'*.d.ts',
'*.lockb',
'bun.lock',
'package-lock.json',
'biome.json',
'prettier.config.js',
'vite.config.js',
],
linterOptions: {
reportUnusedDisableDirectives: 'off',
},
},
js.configs.recommended,
{
files: ['**/*.{ts,js}'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
globals: {
...globals.node,
...globals.browser,
},
},
plugins: {
'@typescript-eslint': tsPlugin,
},
rules: {
...tsRecommendedRules,
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
indent: ['error', 4, { SwitchCase: 1 }],
'no-useless-catch': 'off',
},
},
];