0.1.0 • Published 5 months ago

@snapwp/prettier-config v0.1.0

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
5 months ago

@snapwp/prettier-config

Sharable Prettier config for the Headless WordPress ecosystem. Extends @wordpress/prettier-config.

!WARNING 🐉 There be dragons! This project is in active development and considered experimental. Some features may be incomplete, unstable, or subject to change.

Installation

!NOTE This package relies on the official wp-prettier fork of Prettier to ensure compatibility with WordPress coding standards.

Run the following command:

npm install prettier@npm:wp-prettier @snapwp/prettier-config --save-dev

Usage

Add this to your package.json:

{
	"prettier": "@snapwp/prettier-config"
}

Or in .prettierrc.js:

module.exports = {
	...require( '@snapwp/prettier-config' ),
};

For a real-world example, see the configuration file in SnapWP's NextJS Starter example.

Contributing

This package is part of SnapWP's monorepo and is actively maintained by rtCamp. Packages are published to npm from the packages directory, and can be used standalone in the headless WordPress ecosystem or as part of SnapWP's framework.

Contributions are welcome and encouraged! To learn more about contributing to this package or SnapWP as a whole, please read the Contributing Guide.

For development guidelines, please refer to our Development Guide.

Want to expand what's possible with WordPress?

0.1.0

5 months ago

0.0.1

5 months ago