Skip to content

Make generate-apollo-graphql-schema an optional dependency for eslint

What does this MR do and why?

Make generate-apollo-graphql-schema an optional dependency for eslint

The eslint-base job requires generate-apollo-graphql-schema, but this job doesn't run in all pipelines which can happen if a 'frontend' file is added to e.g. docs directory. e.g. localization pipelines. Making it optional allows ESLint to run without failing on the missing dependency.

We encountered this issue in 3209b20e which included a series of new files such as doc-locale/.markdownlint/rules/bold-with-parentheses.js which are .js files, but did not trigger other frontend rules.

With this change, the generate-apollo-graphql-schema becomes optional, and so wouldn't fail for such a use case.

References

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading