forked from eslint-community/eslint-plugin-eslint-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint-remote-tester.config.mjs
59 lines (55 loc) · 1.98 KB
/
eslint-remote-tester.config.mjs
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
52
53
54
55
56
57
58
59
import eslintPlugin from 'eslint-plugin-eslint-plugin';
import tsparser from '@typescript-eslint/parser';
/** @type {import('eslint-remote-tester').Config} */
export default {
/** Repositories to scan */
repositories: [
// A few dozen top ESLint plugins.
'Intellicode/eslint-plugin-react-native',
'JoshuaKGoldberg/eslint-plugin-expect-type',
'SonarSource/eslint-plugin-sonarjs',
'avajs/eslint-plugin-ava',
'cypress-io/eslint-plugin-cypress',
'dangreenisrael/eslint-plugin-jest-formatting',
'ember-cli/eslint-plugin-ember',
'emberjs/eslint-plugin-ember-internal',
'eslint-community/eslint-plugin-eslint-plugin',
'eslint-community/eslint-plugin-n',
'eslint-community/eslint-plugin-promise',
'eslint-community/eslint-plugin-security',
'eslint-functional/eslint-plugin-functional',
'eslint/eslint',
'import-js/eslint-plugin-import',
'jest-community/eslint-plugin-jest',
'jest-community/eslint-plugin-jest-extended',
'jsx-eslint/eslint-plugin-jsx-a11y',
'jsx-eslint/eslint-plugin-react',
'lo1tuma/eslint-plugin-mocha',
'ota-meshi/eslint-plugin-regexp',
'platinumazure/eslint-plugin-qunit',
'sindresorhus/eslint-plugin-unicorn',
'square/eslint-plugin-square',
'storybookjs/eslint-plugin-storybook',
'testing-library/eslint-plugin-jest-dom',
'testing-library/eslint-plugin-testing-library',
'typescript-eslint/typescript-eslint',
],
/** Extensions of files under scanning */
extensions: ['js', 'mjs', 'cjs', 'ts', 'mts', 'cts'],
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defaults to true. */
cache: false,
/** ESLint configuration */
eslintConfig: [
{
files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
...eslintPlugin.configs['flat/all'],
},
{
files: ['*.ts', '*.mts', '*.cts'],
...eslintPlugin.configs['flat/all-type-checked'],
languageOptions: {
parser: tsparser,
},
},
],
};