mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
9a3fc8a44e
Co-authored-by: SAWADA Takayoshi <sawadasuiren@gmail.com> |
||
---|---|---|
.. | ||
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.