-
Notifications
You must be signed in to change notification settings - Fork 249
Expand file tree
/
Copy patheslint-remote-tester.config.ts
More file actions
42 lines (39 loc) · 1.2 KB
/
eslint-remote-tester.config.ts
File metadata and controls
42 lines (39 loc) · 1.2 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
import parser from '@typescript-eslint/parser';
import type { Config } from 'eslint-remote-tester';
import {
getPathIgnorePattern,
getRepositories,
} from 'eslint-remote-tester-repositories';
import plugin from './src';
// these repos often cause ERR_WORKER_OUT_OF_MEMORY errors, probably because
// they are large typescript repositories which cause our type-based rules
// to use a lot of memory
const reposToIgnore = new Set<string>([
'hubmapconsortium/vitessce',
'LaunchMenu/LaunchMenu',
'Lemoncode/master-frontend-lemoncode',
'magiclabs/magic-js',
'Synerise/synerise-design',
'tannerlinsley/react-location',
'tannerlinsley/react-table',
'trezor/trezor-suite',
'umbraco/Umbraco.UI',
'w-okada/image-analyze-workers',
'webiny/webiny-js',
'wso2/identity-apps',
]);
const config: Config = {
repositories: getRepositories({ randomize: true }).filter(repo => {
return !reposToIgnore.has(repo);
}),
pathIgnorePattern: getPathIgnorePattern(),
extensions: ['js', 'jsx', 'ts', 'tsx'],
concurrentTasks: 3,
cache: false,
logLevel: 'info',
eslintConfig: [
plugin.configs['flat/all'],
{ languageOptions: { parser, parserOptions: { project: true } } },
],
};
export default config;