Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

fix: Duplicate key 'devModules' #273

Merged
merged 4 commits into from
Jul 1, 2019
Merged

fix: Duplicate key 'devModules' #273

merged 4 commits into from
Jul 1, 2019

Conversation

sgraewe
Copy link
Contributor

@sgraewe sgraewe commented Jul 1, 2019

This PR does the following things:

  • Fix: Duplicate key 'devModules' error if using ESLINT + TailwindCSS

/*
** Nuxt.js devModules
** Nuxt.js dev-modules
Copy link
Member

Choose a reason for hiding this comment

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

Good catch! Maybe we could remove the whole devModules key in the config object if neither eslint nor tailwind had been selected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like this?

Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

Choose a reason for hiding this comment

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

I think it could be kept, since if we add more devModules in future, the checking will be painful. And keeping an empty devModules can be considered as a hint that user may leverage it.

Copy link
Member

Choose a reason for hiding this comment

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

I removed the checking for now, we can revert my change if there is any other good reason

@TheAlexLichter
Copy link
Member

LGTM. Now the only thing left are the tests 👍

@clarkdo clarkdo merged commit e7ef3a9 into nuxt:master Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants