Skip to content

Commit

Permalink
Ignore Jest config from ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Winnie Hellmann committed Mar 28, 2019
1 parent baa671a commit 5a2d7bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
/scripts/
/tmp/
/vendor/
jest.config.js
karma.config.js
webpack.config.js
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -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'];

Expand Down

0 comments on commit 5a2d7bf

Please sign in to comment.