-
Notifications
You must be signed in to change notification settings - Fork 590
Expand file tree
/
Copy patheslint.config.js
More file actions
51 lines (48 loc) · 1.07 KB
/
eslint.config.js
File metadata and controls
51 lines (48 loc) · 1.07 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const path = require('node:path');
const mwtsConfig = require('mwts/eslint.config.js');
const globals = require('globals');
module.exports = [
{
ignores: [
'**/node_modules',
'packages/version',
'**/dist',
'**/test',
'**/jest.config.js',
'interface.ts',
'interface',
'app.js',
'agent.js',
'site',
'function.js',
],
},
...mwtsConfig,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parserOptions: {
project: [path.join(__dirname, 'tsconfig.json')],
tsconfigRootDir: __dirname,
},
},
},
// Jest JS: globals only
{
files: ['**/jest.setup.js', '**/*.test.js', '**/*.spec.js'],
languageOptions: {
globals: {
...globals.jest,
},
},
},
{
rules: {
'no-control-regex': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
},
},
];