2.0.4 • Published 3 months ago

@hdnet/prettier-config v2.0.4

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

HDNET prettier-config

This packages defines the strict implementation of the HDNET Code Formatting Guidelines from the HDNET Standard Recommendations (HSR-15) as npm package using prettier through a shareable config.

Getting started

  1. Install dependencies
$ npm i -D prettier @hdnet/prettier-config
  1. Create your prettier config file (i.e. prettier.config.js) and extend from @hdnet/prettier-config:
import hdnetPrettierConfig from '@hdnet/prettier-config'

export default {
  ...hdnetPrettierConfig,
}

Notes

We explicitely parse .json files as JSON which differs from the behavior within prettier itself where certain files are assigned to JSON5 or JSONC.

Contribute

To setup current node version, you can use nvm (in this project a .nvmrc file is maintained).

2.0.4

3 months ago

1.0.0

3 months ago

0.1.2

1 year ago