Skip to content

Commit

Permalink
Restrict importing from enterprise in OSS codebase (#23044)
Browse files Browse the repository at this point in the history
  • Loading branch information
courier-new committed Jul 21, 2021
1 parent 1a3e7ad commit 2b6144a
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 63 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Expand Up @@ -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': [
Expand Down

0 comments on commit 2b6144a

Please sign in to comment.