Install ESLint + Prettier for Nuxt 3

Tram Ho

Up to the time of publishing the article, the ESLint setup document on https://v3.nuxtjs.org is incomplete. This article notes how to setup ESLint + Prettier for Nuxt.js v3, the command line runs immediately after init project:

1. Install dependencies

2. Add NPM script

Add script for convenience when checking eslint.

Use when checking eslint:

3. Config ESlint + Prettier

Create config files for ESLint + Prettier.

Done.

Share the news now

Source : Viblo