@shopware-ag/meteor-prettier-config

1.0.0 • Public • Published

@shopware-ag/meteor-prettier-config

A shared prettier config for shopware projects.

Installation

With npm:

npm i -D @shopware-ag/meteor-prettier-config

With pnpm:

pnpm i -D @shopware-ag/meteor-prettier-config

Usage

There are two ways to use this new config:

  1. By configuring prettier inside your package.json file:
{
  "name": "my-package",
  "devDependencies": {
    "prettier": "^3.0.0",
  },
  // ↓ This is the important part ↓
  "prettier": "@shopware-ag/meteor-prettier-config",
}
  1. Or you can use a .prettierrc.js file:
import meteorPrettierConfig from "@shopware-ag/meteor-prettier-config";

export default meteorPrettierConfig;

For a full guide you can read the prettier configuration.

Using single quotes

We strongly advise to keep the configuration as is. The pre-defined config, aswell as prettier exist to avoid unnecessary discussions about things that do not matter.

However, if you really dislike using double quotes, you can override that setting like so:

// filename: .prettierrc.js
import meteorPrettierConfig from "@shopware-ag/meteor-prettier-config";

export default {
  ...meteorPrettierConfig,
  singleQuote: true,
};

Readme

Keywords

none

Package Sidebar

Install

npm i @shopware-ag/meteor-prettier-config

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • schuchi
  • pweyck
  • jannisleifeld
  • tobiasberge
  • patzick
  • weltraumakustik
  • haberkamp
  • shyim
  • ffrank913
  • bird87za