2.0.1 • Published 3 months ago

@cabinllc/prettier-config v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@cabinllc/prettier-config

A comfortable Prettier configuration for React/Node projects written in TypeScript, enhanced with import sorting capabilities. This package extends Prettier's default formatting rules to ensure consistent code style across projects, while also organizing imports in a logical and readable manner.

Features

  • Configures tab width, trailing commas, and other formatting rules suitable for React/Node projects using TypeScript.
  • Utilizes @ianvs/prettier-plugin-sort-imports for automatic import sorting, following a specified order that enhances code readability and maintenance.
  • Easy to install and integrate into existing or new projects.

Installation

To use this Prettier configuration in your project, follow these steps:

  1. Install the configuration package as a development dependency:
npm install --save-dev @cabinllc/prettier-config
  1. Set "prettier" to "@cabinllc/prettier-config" in your project's package.json file:
{
    "prettier": "@cabinllc/prettier-config"
}
  1. Optionally, you can add a script that uses prettier without installing it separately:
{
    "scripts": {
        "format": "prettier --write ."
    }
}
2.0.1

3 months ago

2.0.0

3 months ago

1.0.0

5 months ago