-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (29 loc) · 733 Bytes
/
Copy patheslint.config.js
File metadata and controls
31 lines (29 loc) · 733 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
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,
}
},
];