Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nodecfdi/prettier-config

nodecfdi247MIT1.4.1TypeScript support: included

Configuración Prettier para proyectos NodeCfdi

prettier, nodecfdi, shared, config

readme

@nodecfdi/prettier-config

Source Code Discord Latest Version Software License Total Downloads

La libreria @nodecfdi/prettier-config exporta la configuración base para Prettier usada en los proyectos de NodeCfdi.

:us: The documentation of this project is in spanish as this is the natural language for intended audience.

:mexico: La documentación del proyecto está en español porque ese es el lenguaje principal de los usuarios.

Instalación

NPM

npm i -D prettier @nodecfdi/prettier-config

Yarn

yarn add -D prettier @nodecfdi/prettier-config

PNPM

pnpm add -D prettier @nodecfdi/prettier-config

Uso básico

Para habilitar estás reglas, puedes simplemente agregar la propiedad prettier en tu package.json y referenciar está configuración compartida como se muestra a continuación:

Para la configuración base:

{
  ///...
  "prettier": "@nodecfdi/prettier-config"
}

Ó bien, la configuracion para librerias:

{
  ///...
  "prettier": "@nodecfdi/prettier-config/pkg"
}

Si deseas ajustar algúna regla o habilitar alguna no incluida, puedes extender de está configuración pero no puedes hacerlo en el package.json en su lugar crea un archivo JS. Y exporta las modificaciones por ejemplo:

// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs
import nodecfdiPrettierConfig from '@nodecfdi/prettier-config';

export default {
  ...nodecfdiPrettierConfig,
  printWidth: 120,
};

Soporte

Puedes obtener soporte abriendo un ticket en Github.

Adicionalmente, esta librería pertenece a la comunidad OcelotlStudio, así que puedes usar los mismos canales de comunicación para obtener ayuda de algún miembro de la comunidad.

Compatibilidad

Esta librería se mantendrá compatible con al menos la versión con soporte activo de Node más reciente y soporte activo de Typescript más reciente.

También utilizamos Versionado Semántico 2.0.0 por lo que puedes usar esta librería sin temor a romper tu aplicación.

Contribuciones

Las contribuciones con bienvenidas. Por favor lee CONTRIBUTING para más detalles y recuerda revisar el archivo CHANGELOG.

The @nodecfdi/prettier-config library is copyright © NodeCfdi - OcelotlStudio and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Generated by auto-changelog.

v1.4.1

Commits

  • chore: :arrow_up: update dependencies 781a409
  • chore: :construction: update dependencies 6de1c89

v1.4.0 - 2024-12-07

Commits

  • build: :construction: update to usage tsup for generate lib and assets for support better minified 124fb52
  • chore(release): :tada: 1.4.0 2a3a675
  • docs: :memo: update README for latest changes in lib and shared configs availables 6f8cf10

v1.3.1 - 2024-11-12

Commits

  • chore(release): :tada: 1.3.1 cc8b994
  • fix: :bug: only export esm not commonjs 0ee743f

v1.3.0 - 2024-11-12

Commits

  • feat: :sparkles: add new exports adonis and pkg for better usage in files 13a7d87
  • refactor: :recycle: change of usage raw files for prettier config to usage generate with tshy c2ae4d2
  • chore(release): :tada: 1.3.0 e29e215

v1.2.0 - 2024-09-02

Commits

  • chore: :construction: add husky, commitlint, np and auto-changelog for handle releases versions 1f8e0eb
  • chore: :truck: move project file to dedicated directory 4c03db5
  • docs: :memo: add missing license and readme bags 9129cfa

1.1.1

Patch Changes - Fix types

  • correct types exports

1.1.0

Minor Changes - Add types

  • add types for shared config
  • update dependencies

1.0.0

Major - Initial version

  • first release version