Nuxt/examples/typescript-eslint
Romain Lanz 7100a2c6bc examples: upgrade and fix typescript configuration files (#5310) 2019-03-21 23:21:56 +03: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
README.md 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
tsconfig.json refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03:30

README.md

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.