Ignore Jest config from ESLint

This commit is contained in:
Winnie Hellmann 2019-03-28 18:13:20 +01:00
parent baa671a389
commit 5a2d7bf245
2 changed files with 10 additions and 1 deletions

View File

@ -9,5 +9,6 @@
/scripts/
/tmp/
/vendor/
jest.config.js
karma.config.js
webpack.config.js

View File

@ -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'];