DEV Community

Discussion on: Adding ESLint and Prettier to Nuxt 3 ✨ (2023)

Collapse
 
salinder profile image
Nick • Edited

Hi, Lewis.

I have several questions for you regarding the installation of the prettier + eslint:

  1. Why are you using two packages that perform basically the same thing? One of them is eslint-config-prettier - this plugin is for turning off all rules that are unnecessary or might conflict with Prettier(on docs) and another is eslint-plugin-prettier. eslint-plugin-prettier have disadvantages like leaving linter errors (docs).
  2. Why are you don't using the official repository of nuxt?
Collapse
 
tao profile image
Lewis Lloyd

Hey!

  1. eslint-plugin-prettier recommends to use eslint-config-prettier to disable all formatting-related ESLint rules: github.com/prettier/eslint-plugin-...

  2. @nuxtjs/eslint-config-typescript is the package name referenced in the official nuxt/eslint-config repository: github.com/nuxt/eslint-config#type...