mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-12 17:13:56 +00:00
.. | ||
pages | ||
.eslintrc.js | ||
.gitignore | ||
nuxt.config.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
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.