-
Notifications
You must be signed in to change notification settings - Fork 543
/
Copy patheslint.config.js
33 lines (32 loc) · 986 Bytes
/
eslint.config.js
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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: ['dist/', 'docs/', 'node_modules/', 'src/gen/'],
},
eslint.configs.recommended,
tseslint.configs.strict,
{
languageOptions: {
globals: {
Buffer: true,
console: true,
process: true,
setTimeout: true,
},
},
rules: {
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': false }],
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'none',
destructuredArrayIgnorePattern: '^_',
},
],
},
},
);