-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Breaking] refactor(eslint-mc-app): simplify and improve usage of eslint config #1961
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/ajyibfkb8 |
🦋 Changeset detectedLatest commit: 07a5238 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Nice. Let's finish internal refactors by earlier releases before loading teams with more things I'd suggest. Can you anticipate how many changes this would cause and how many are auto-fixable? |
I tested this in our internal repo. It's all good, and it actually found a bunch of legit errors! 🤓 |
@@ -4,7 +4,7 @@ | |||
<a href="https://www.npmjs.com/package/@commercetools-frontend/eslint-config-mc-app"><img src="https://badgen.net/npm/v/@commercetools-frontend/eslint-config-mc-app" alt="Latest release (latest dist-tag)" /></a> <a href="https://www.npmjs.com/package/@commercetools-frontend/eslint-config-mc-app"><img src="https://badgen.net/npm/v/@commercetools-frontend/eslint-config-mc-app/next" alt="Latest release (next dist-tag)" /></a> <a href="https://bundlephobia.com/result?p=@commercetools-frontend/eslint-config-mc-app"><img src="https://badgen.net/bundlephobia/minzip/@commercetools-frontend/eslint-config-mc-app" alt="Minified + GZipped size" /></a> <a href="https://github.com/commercetools/merchant-center-application-kit/blob/master/LICENSE"><img src="https://badgen.net/github/license/commercetools/merchant-center-application-kit" alt="GitHub license" /></a> | |||
</p> | |||
|
|||
ESLint config used by a MC application. | |||
ESLint config used by a (Merchant Center) Custom Application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need (Merchant Center)
@@ -3,6 +3,7 @@ import { Formik } from 'formik'; | |||
import { FormDialog } from '@commercetools-frontend/application-components'; | |||
import Spacings from '@commercetools-uikit/spacings'; | |||
import TextField from '@commercetools-uikit/text-field'; | |||
import TextInput from '@commercetools-uikit/text-input'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this related to the eslint udpate? 🤔
or was this something you just discovered on the way?
35ea6bd
to
f7ec8aa
Compare
f27166e
to
ee4ede3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Thanks for iterating on this!
69e7b71
to
07a5238
Compare
Our ESLint config hasn't been updated in a while. Furthermore, in this repo we were not using the mc-app config but a "custom" one specific for typescript.
Let's change that and use our own config here as well, with support for TypeScript out of the box.
So what changed here:
eslint
as a peer dependency.