-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.cjs
More file actions
36 lines (35 loc) · 827 Bytes
/
eslint.config.cjs
File metadata and controls
36 lines (35 loc) · 827 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
33
34
35
36
/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable no-undef */
const js = require('@eslint/js');
const tseslint = require('typescript-eslint');
module.exports = tseslint.config(
{
ignores: [
'dist/**',
'node_modules/**',
'coverage/**',
'tests/**',
'migrations/**',
'__mocks__/**',
'*.config.js',
'*.config.ts',
'jest.*.config.ts',
],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'no-console': 'off',
},
}
);