Nuxt/examples/typescript-eslint
2019-07-15 19:30:14 +01:00
..
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 chore(deps): update devdependency eslint-config-standard to v13 2019-07-15 19:30:14 +01:00
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.