|
| 1 | +module.exports = { |
| 2 | + /** Repositories to scan */ |
| 3 | + repositories: require('./repositories.json'), |
| 4 | + |
| 5 | + /** Extensions of files under scanning */ |
| 6 | + extensions: ['js', 'jsx', 'ts', 'tsx'], |
| 7 | + |
| 8 | + /** Optional pattern used to exclude paths */ |
| 9 | + pathIgnorePattern: `(${[ |
| 10 | + 'node_modules', |
| 11 | + '\\/\\.', // Any file or directory starting with dot, e.g. ".git" |
| 12 | + '/dist/', |
| 13 | + '/build/', |
| 14 | +
|
| 15 | + // Common patterns for minified JS |
| 16 | + 'babel\\.js', |
| 17 | + 'vendor\\.js', |
| 18 | + 'vendors\\.js', |
| 19 | + 'chunk\\.js', |
| 20 | + 'bundle\\.js', |
| 21 | + 'react-dom\\.development\\.js', |
| 22 | + '\\.min\\.js', // Any *.min.js |
| 23 | +
|
| 24 | + // Project specific ignores |
| 25 | + 'codesandbox-client/packages/app/static/js', |
| 26 | + 'codesandbox-client/standalone-packages', |
| 27 | + 'dockunit/platform/assets', |
| 28 | + 'hyper/bin', |
| 29 | + 'react-solitaire/lib/index\\.js', |
| 30 | + 'Khan/perseus/lib', |
| 31 | + 'glortho/react-keydown/example/public', |
| 32 | + 'reach/reach-ui/packages/combobox/examples/cities\\.ts', |
| 33 | + 'reach/reach-ui/website/src/components/cities\\.js', |
| 34 | + 'reach/reach-ui/website/static/router/static', |
| 35 | + 'Automattic/wp-calypso/client/components/phone-input/data\\.js', |
| 36 | + 'test262-main\\.ts', |
| 37 | + 'sample_vis\\.test\\.mocks\\.ts', |
| 38 | + ].join('|')})`, |
| 39 | + |
| 40 | + /** Empty array since we are only interested in linter crashes */ |
| 41 | + rulesUnderTesting: [], |
| 42 | + |
| 43 | + /** Maximum amount of tasks ran concurrently */ |
| 44 | + concurrentTasks: 2, |
| 45 | + |
| 46 | + /** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defauls to true. */ |
| 47 | + cache: false, |
| 48 | + |
| 49 | + /** ESLint configuration */ |
| 50 | + eslintrc: { |
| 51 | + root: true, |
| 52 | + env: { |
| 53 | + es6: true, |
| 54 | + }, |
| 55 | + parser: '@typescript-eslint/parser', |
| 56 | + parserOptions: { |
| 57 | + ecmaVersion: 2020, |
| 58 | + sourceType: 'module', |
| 59 | + ecmaFeatures: { |
| 60 | + jsx: true, |
| 61 | + }, |
| 62 | + }, |
| 63 | + plugins: [ |
| 64 | + 'jest-dom', |
| 65 | + ], |
| 66 | + extends: [ |
| 67 | + 'plugin:jest-dom/recommended', |
| 68 | + ], |
| 69 | + rules: { |
| 70 | + 'prefer-in-document': 'error' |
| 71 | + }, |
| 72 | + }, |
| 73 | +}; |
0 commit comments