1.0.8 • Published 8 months ago

@meaganewaller/prettier-config v1.0.8

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

@meaganewaller/prettier-config

The prettier config for meaganewaller projects

Installation

Install the package via your package manager:

pnpm add -D @meaganewaller/prettier-config
npm install --save-dev @meaganewaller/prettier-config
yarn add --dev @meaganewaller/prettier-config

Usage

To use this prettier config, just reference it in your package.json file:

{
  "name": "my-project",
  "prettier": "@meaganewaller/prettier-config",
  "version": "1.0.0"
}

You can also reference it in your .prettierrc.js file:

module.exports = "@meaganewaller/prettier-config";

Configuration

This prettier config includes the following settings:

  • arrowParens: Always include parentheses around a sole arrow function parameter.
  • singleQuote: Use single quotes instead of double quotes.
  • jsxSingleQuote: Use single quotes in JSX.
  • tabWidth: Set the width of tabs to 2 spaces.
  • semi: Do not include semicolons at the end of statements.
  • plugins: Include the following plugins:
    • prettier-plugin-prisma: Format Prisma schema files.
    • prettier-plugin-sort-json: Sort keys in JSON files.
    • prettier-plugin-tailwindcss: Format Tailwind CSS files.

You can modify these settings by creating your own prettier.config.js file and extending this config:

module.exports = {
  ...require("@meaganewaller/prettier-config"),
  semi: true,
};

License

This project is licensed under the MIT License.

1.0.8

8 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago