Introduction
In this article, you will learn:
How to set up a Nuxt project with ESLint and Prettier
How to configure ESLint and Pretti...
For further actions, you may consider blocking this person and/or reporting abuse
Super useful, thanks!!
Thank you for explaining each step with the "why" behind it. Very rare to come across such detailed post!
It would have been nicer if you could have mentioned at the end how the final
eslintrc.json,prettierrc.jsonandpackage.jsonfiles looked like, or may be an example git repo, if it is not too much ask for. 😄Appreciate it!
I've already deleted that tutorial project, but it might look like this
eslintrc.json
prettierc.json
package.json
nuxt.config.ts
Why I get:
admin@iMac myProject % npm run lint
Oops! Something went wrong! :(
ESLint: 8.57.0
No files matching the pattern "." were found.
It is fresh Nuxt installation, and all done as you say.
Fixed. Need to add .eslintrc.cjs:
module.exports = {
root: true,
extends: ["@nuxt/eslint-config"],
};
Yeap, thank you. I've edited the comment