nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 430 forks source link

[TypeScript] eslint not target '.ts' files #549

Open daisuke-fukuda opened 4 years ago

daisuke-fukuda commented 4 years ago

In Generated package.json, lint setting not target .ts extension.

Now

  "scripts": {
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
  },
  "lint-staged": {
    "*.{js,vue}": "npm run lint",
  },

When using TypeScript, should be

  "scripts": {
    "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore .",
  },
  "lint-staged": {
    "*.{js,ts,vue}": "npm run lint",
  },
daisuke-fukuda commented 4 years ago

https://github.com/nuxt/create-nuxt-app/pull/449

scscgit commented 2 years ago

Fixed in