From 47097940448f769bb60d348481f2da88dd202a5d Mon Sep 17 00:00:00 2001 From: courier-new Date: Tue, 20 Jul 2021 13:26:47 -0700 Subject: [PATCH] Restrict import pattern with "enterprise" in the path --- .eslintrc.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 6b396b066b1f8..2c5742ddae3f6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -50,6 +50,14 @@ const config = { message: 'Code using animationFrameScheduler breaks in Firefox when using Sentry.', }, ], + patterns: [ + { + group: ['**/enterprise/*'], + message: `The OSS product may not pull in any code from the enterprise codebase, to stay a 100% open-source program. + +See https://about.sourcegraph.com/community/faq#is-all-of-sourcegraph-open-source for more information.`, + }, + ], }, ], 'react/forbid-elements': [