forked from sindresorhus/eslint-plugin-unicorn
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint-remote-tester.config.js
40 lines (32 loc) · 1014 Bytes
/
eslint-remote-tester.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
36
37
38
39
40
'use strict';
const {getRepositories, getPathIgnorePattern} = require('eslint-remote-tester-repositories');
module.exports = {
/** Repositories to scan */
repositories: getRepositories({randomize: true}),
/** Optional pattern used to exclude paths */
pathIgnorePattern: getPathIgnorePattern(),
/** Extensions of files under scanning */
extensions: ['js', 'jsx', 'ts', 'tsx'],
/** Maximum amount of tasks ran concurrently */
concurrentTasks: 3,
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defaults to true. */
cache: false,
/** Optional setting for log level. Valid values are verbose, info, warn, error. Defaults to verbose. */
logLevel: 'info',
/** ESLint configuration */
eslintrc: {
root: true,
env: {
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: ['plugin:unicorn/all'],
},
};