@shopware-ag/meteor-prettier-config
v1.0.0
Published
Prettier configuration for Shopware projects
Maintainers
Keywords
Readme
@shopware-ag/meteor-prettier-config
A shared prettier config for shopware projects.
Installation
With npm:
npm i -D @shopware-ag/meteor-prettier-configWith pnpm:
pnpm i -D @shopware-ag/meteor-prettier-configUsage
There are two ways to use this new config:
- By configuring prettier inside your
package.jsonfile:
{
"name": "my-package",
"devDependencies": {
"prettier": "^3.0.0",
},
// ↓ This is the important part ↓
"prettier": "@shopware-ag/meteor-prettier-config",
}- Or you can use a
.prettierrc.jsfile:
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,
};