Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

116
Vistas
Why use "eslint-plugin-prettier" over "eslint-config-prettier"

Both eslint-config-prettier and eslint-plugin-prettier are popular packages for integrating ESLint with Prettier.

However, after reading Docs of both of them I understood that both would do the job. But, if we use eslint-plugin-prettier, there will be a few issues that would not happen if we would use eslint-config-prettier. Also, when using eslint-plugin-prettier recommended config, it would use eslint-config-prettier behind the scene.

It seams to me that eslint-config-prettier has obvious advantages over eslint-plugin-prettier, but eslint-plugin-prettier is still very popular and it has really a lot of weekly downloads on npm. Did I miss something? What would be advantage of using eslint-plugin-prettier?

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This packages have different purposes:

  • eslint-plugin-prettier - runs Prettier as an ESLint rule and reports differences as individual ESLint issues.

  • eslint-config-prettier - turns off all rules that are unnecessary or might conflict with Prettier. It's mean that if you use some eslint-config(your own or third party) and this config have conflicts with prettier rules - it should resolve this conflicts by turn off this rules.

7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos