forked from kubernetes-client/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
27 lines (26 loc) · 844 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
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' }],
},
},
);