2.0.0 • Published 1 year ago

@maxpatiiuk/prettier-config v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Prettier Configuration

A mostly default prettier configuration with plugins for package.json, Tailwind class names, .xml files and shell files

Usage

Install this config as a dev dependency:

npm install -D @maxpatiiuk/prettier-config

Then, create a prettier.config.js file at the root of your project:

import prettierConfig from "@maxpatiiuk/prettier-config";

/**
 * @see https://prettier.io/docs/en/configuration.html
 * @type {import("prettier").Config}
 */
const config = {
  ...prettierConfig,
  // your overwrites go here
};

export default config;

OR, simply add this to your package.json:

  "prettier": "@maxpatiiuk/prettier-config"

More information about reusing and extending configs