mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
Ignore Jest config from ESLint
This commit is contained in:
@ -9,5 +9,6 @@
|
|||||||
/scripts/
|
/scripts/
|
||||||
/tmp/
|
/tmp/
|
||||||
/vendor/
|
/vendor/
|
||||||
|
jest.config.js
|
||||||
karma.config.js
|
karma.config.js
|
||||||
webpack.config.js
|
webpack.config.js
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
/* eslint-disable filenames/match-regex */
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
const ROOT_PATH = __dirname;
|
||||||
|
const IS_EE =
|
||||||
|
process.env.EE !== undefined
|
||||||
|
? JSON.parse(process.env.EE)
|
||||||
|
: fs.existsSync(path.join(ROOT_PATH, 'ee'));
|
||||||
|
|
||||||
const reporters = ['default'];
|
const reporters = ['default'];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user