-
-
Notifications
You must be signed in to change notification settings - Fork 356
/
eslint-remote-tester.config.js
54 lines (46 loc) · 1.27 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use strict';
module.exports = {
/** Repositories to scan */
repositories: require('./repositories.json'),
/** Extensions of files under scanning */
extensions: ['js', 'jsx', 'ts', 'tsx'],
/** Optional pattern used to exclude paths */
pathIgnorePattern: `(${[
'node_modules',
'\\/\\.', // Any file or directory starting with dot, e.g. '.git'
'/dist/',
'/build/',
// Common patterns for minified JS
'babel\\.js',
'vendor\\.js',
'vendors\\.js',
'chunk\\.js',
'bundle\\.js',
'react-dom\\.development\\.js',
'\\.min\\.js' // Any *.min.js
].join('|')})`,
/** Empty array since we are only interested in linter crashes */
rulesUnderTesting: [],
/** 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. Defauls 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: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
extends: ['plugin:unicorn/recommended']
}
};