Skip to content

Prettier config used in Single Pixel Lab packages and projects

License

Notifications You must be signed in to change notification settings

singlepixellab/prettier-config

Repository files navigation

@singlepixellab/prettier-config

Prettier config used in Single Pixel Lab packages and projects

Installation

Install preset package

npm i -D @singlepixellab/prettier-config

# Make sure to also install prettier
npm i -D prettier

Usage

You can reference this preset in your package.json:

{
  "name": "your-project",
  "version": "1.0.0",
  "prettier": "@singlepixellab/prettier-config"
}

or you can use any of the supported extensions to export a string, e.g. .prettierrc:

"@singlepixellab/prettier-config"

Extending config

To extend and modify this configuration, import the file in a .prettierrc.js file:

import splConfig from "@singlepixellab/prettier-config";

/**
 * @type {import("prettier").Config}
 */
const config = {
  ...splConfig,
  tabWidth: 4,
};

export default config;

License

MIT © Single Pixel Lab

About

Prettier config used in Single Pixel Lab packages and projects

Resources

License

Stars

Watchers

Forks