1.4.1 • Published 29 days ago

@putstack/prettier-config v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
29 days 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.1

29 days ago

1.4.0

4 months ago

1.3.1

5 months ago

1.3.0

6 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

9 months ago