1.1.0 • Published 7 days ago

@yoo-digital/prettier v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
7 days ago

YOO Prettier

This repo contains a reusable prettier configuration for projects @ YOO.

Introduction

The published package can be found in our npm organization here (@yoo-digital).

Goal

The goal of this repository is to improve the developer experience @ YOO, by offering a centralized repository containing files that are reused in the different projects. It should ensure that these projects follow a set of common and defined standards.

Motivation

Every developer can and should contribute to this repository. It should be in everyone's interest to improve the developer experience @ YOO. Amendments or changes can be introduced in our monthly guild meetings.

Using the Configuration

Install the configuration:

npm i @yoo-digital/prettier --save-dev

Reference the configuration in your package.json:

{
  "prettier": "@yoo-digital/prettier"
}

Note: After updating the configuration, restart your IDE in order to enable the latest changes.

Extending the Configuration

If needed, you can override the configuration with any necessary project-specific overrides:

// .prettierrc.mjs, .prettierrc.js
import prettierConfig from '@yoo-digital/prettier';

export default {
  ...prettierConfig,
  // overrides
};

Alternatively you can simply define .prettierrc or .prettierrc.json containing:

"@yoo-digital/prettier"

For a complete overview of configuration options please refer to the official documentation.

Ignoring files

Make sure to define a .prettierignore file at the root of your project, to ignore files to be formatted:

.next
assets
build
dist
lib
public

Features

The configuration contains a set of plugins: