0.7.2 • Published 7 months ago

@zeitonline/prettier-config v0.7.2

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

@zeitonline/prettier-config

This package provides a shared Prettier configuration for ZEIT ONLINE projects.

Installation & Usage

  1. Make sure to add the .editorconfig file to your project as well, since prettier picks up a few settings from it:
wget https://raw.githubusercontent.com/zeitonline/frontend-code-style/main/.editorconfig
  1. Install the package using npm:
npm install --save-dev @zeitonline/prettier-config
  1. Create a .prettierrc.mjs file in the root of your project, import and spread the shared configuration:
import zonPrettierConfig from "@zeitonline/prettier-config";

export default {
    ...zonPrettierConfig,
};
  1. (Optional) Add a .prettierignore file to your project to exclude files from formatting, e.g.:
package-lock.json

*.md
*.css
*.scss
*.html
*.yml
*.yaml
*.lock
  1. (Optional) Add a format script to your package.json, e.g.:
{
  "scripts": {
    "format": "prettier --write ."
  }
}

Further Reading

0.7.2

7 months ago

0.7.1

8 months ago

0.7.0

9 months ago

0.6.1

10 months ago

0.6.0

11 months ago

0.5.1

11 months ago

0.5.0

1 year ago

0.4.1-alpha.2

1 year ago

0.4.1-alpha.1

1 year ago

0.4.1-alpha.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago