-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (31 loc) · 984 Bytes
/
eslint.config.js
File metadata and controls
32 lines (31 loc) · 984 Bytes
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
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
export default [
{ ignores: ['dist/**', 'node_modules/**', 'coverage/**'] },
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn', // Downgrade from error to warning
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'warn', // Downgrade from error to warning
'@typescript-eslint/no-unsafe-function-type': 'warn', // Downgrade from error to warning
'@typescript-eslint/ban-ts-comment': 'warn', // Downgrade from error to warning
'no-case-declarations': 'warn' // Downgrade from error to warning
}
},
{
files: ['**/*.test.ts'],
languageOptions: {
globals: {
jest: true,
expect: true,
describe: true,
it: true,
beforeEach: true,
afterEach: true
}
}
}
];