Skip to content

Commit

Permalink
fix(eslint): provide default BABEL_ENV variable to allow VSCode to pa…
Browse files Browse the repository at this point in the history
…rse the Babel config (#2521)
  • Loading branch information
emmenko committed Mar 22, 2022
1 parent 90d5a23 commit 913459f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-steaks-lick.md
@@ -0,0 +1,5 @@
---
'@commercetools-frontend/eslint-config-mc-app': patch
---

Define the `BABEL_ENV` variable in the ESLint config, to ensure VSCode is able to parse the Babel config.
2 changes: 2 additions & 0 deletions packages/eslint-config-mc-app/index.js
@@ -1,3 +1,5 @@
process.env.BABEL_ENV = 'production';

// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-patch/modern-module-resolution');

Expand Down

1 comment on commit 913459f

@vercel
Copy link

@vercel vercel bot commented on 913459f Mar 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.