Nuxt/examples/typescript-eslint
Kevin Marrec 920f444b6e refactor(ts): better DX for typescript support (#5079)
Breaking change : `build.useForkTsChecker` renamed to `build.typescript.typeCheck`
2019-03-14 13:37:47 +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
nuxt.config.ts refactor(ts): better DX for typescript support (#5079) 2019-03-14 13:37:47 +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): better DX for typescript support (#5079) 2019-03-14 13:37:47 +03: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.