-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheslint.config.js
35 lines (33 loc) · 934 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
34
35
import lomrayConfig from '@lomray/eslint-config-react';
// noinspection NpmUsedModulesInstalled
import baseConfig from '@lomray/eslint-config';
// noinspection NpmUsedModulesInstalled
import globals from 'globals';
const customFilesIgnores = {
...baseConfig['filesIgnores'],
files: [
...baseConfig['filesIgnores'].files,
'__tests__/**/*.{ts,tsx,*.ts,*tsx}',
'__mocks__/**/*.{ts,tsx,*.ts,*tsx}',
'__helpers__/**/*.{ts,tsx,*.ts,*tsx}',
],
}
export default [
...lomrayConfig.config(customFilesIgnores),
{
...customFilesIgnores,
languageOptions: {
globals: {
...globals.node,
NodeJS: true,
}
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-return': 0,
}
},
];