Nuxt/examples/typescript-eslint
Kevin Marrec 9a3fc8a44e refactor(ts): only generate tsconfig.json if missing (#5356) (#5367)
Co-authored-by: SAWADA Takayoshi <sawadasuiren@gmail.com>
2019-03-29 18:30:49 +04:30
..
pages refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30
.eslintrc.js refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30
.gitignore refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30
nuxt.config.ts examples: upgrade and fix typescript configuration files (#5310) 2019-03-21 23:21:56 +03:30
package.json refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30
README.md refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30
tsconfig.json refactor(ts): only generate tsconfig.json if missing (#5356) (#5367) 2019-03-29 18:30:49 +04:30

Nuxt with TypeScript & ESLint example

Use yarn lint or npm run lint to lint your TypeScript project !

Why ESLint and not TSLint ?

See https://eslint.org/blog/2019/01/future-typescript-eslint

VSCode settings

If you're using VSCode, we recommend using these settings :

"eslint.autoFixOnSave": true,
"eslint.validate": [
  {
    "language": "javascript",
    "autoFix": true
  },
  {
    "language": "typescript",
    "autoFix": true
  },
  {
    "language": "vue",
    "autoFix": true
  }
]

It will lint your .js, .ts & .vue files whenever you're saving them.