1.4.3 • Published 9 months ago

@putstack/prettier-config v1.4.3

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

A Prettier configuration by Putro

This is a simple configuration for Prettier that I use across projects.

Installation

To install this package run the following command in the terminal in the root directory of your application.

pnpm install -D @putstack/prettier-config

OR

npm install --save-dev @putstack/prettier-config

OR

yarn add -D @putstack/prettier-config

Usage

Create a .prettierrc, .prettierrc.yaml, .prettierrc.yml or .prettierrc.json file and export a string.

OR

Create a prettier.config.js or .prettierrc.js file and export an object.

import putstackConfig from '@putstack/prettier-config';

/** @type {import("prettier").Config} */
const config = {
  ...putstackConfig,
};

export default config;

OR WITH CJS

module.exports = {
    ...require("@putstack/prettier-config"),
    endOfLine: 'lf', //to overwriter any configuration
}

Example

This project use the prettier-config on itself, as seen in the root package.json file.

1.4.3

9 months ago

1.4.2-next.0

1 year ago

1.4.2

11 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago