Skip to content

Commit

Permalink
feat: don't install @nuxtjs/eslint-config and @nuxtjs/eslint-config-t…
Browse files Browse the repository at this point in the history
…ypescript together (#633)
  • Loading branch information
tillsanders committed Oct 19, 2020
1 parent b6facaf commit 60795d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cna-template/template/nuxt/package.js
Expand Up @@ -85,6 +85,9 @@ module.exports = {
if (!typescript || !eslint) {
delete pkg.devDependencies['@nuxtjs/eslint-config-typescript']
}
if (typescript && eslint) {
delete pkg.devDependencies['@nuxtjs/eslint-config']
}
if (typescript) {
for (const key of Object.keys(scripts)) {
scripts[key] = scripts[key].replace(/^nuxt( |$)/, 'nuxt-ts$1')
Expand Down

0 comments on commit 60795d1

Please sign in to comment.