Commit f7b1b018 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch 'feature/ignore-jh-in-eslint' into 'master'

Make eslint ignore js files in JH folder when in jh [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!68336
parents ebf78c1a 95644eca
......@@ -3,7 +3,7 @@ extends:
- plugin:@gitlab/i18n
- plugin:no-jquery/slim
- plugin:no-jquery/deprecated-3.4
- ./tooling/eslint-config/conditionally_ignore_ee.js
- ./tooling/eslint-config/conditionally_ignore.js
globals:
__webpack_public_path__: true
gl: false
......
/* 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 };
/* eslint-disable import/no-commonjs */
const IS_EE = require('../../config/helpers/is_ee_env');
module.exports = IS_EE ? {} : { ignorePatterns: ['ee/**/*.*'] };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment