debian-mirror-gitlab/tooling/eslint-config/conditionally_ignore.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
412 B
JavaScript
Raw Normal View History

2021-10-27 15:23:28 +05:30
/* eslint-disable import/no-commonjs */
const IS_EE = require('../../config/helpers/is_ee_env');
const IS_JH = require('../../config/helpers/is_jh_env');
const allPatterns = [
{
ignore: !IS_EE,
pattern: 'ee/**/*.*',
},
{
ignore: !IS_JH,
pattern: 'jh/**/*.*',
},
];
const ignorePatterns = allPatterns.filter((x) => x.ignore).map((x) => x.pattern);
module.exports = { ignorePatterns };