0.1.6 • Published 8 months ago

@difz-dcc/prettier-config v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

DIFZ DCC Prettier Config

Introduction

This package provides a prettier config with rules voted upon by members of the DCC Technical Team.

Recommended Usage

Steps:

  • Install this package npm i @difz-dcc/prettier-config (Note: this is published to NPM for ease of use, not a private Azure Artifact Feed)
  • Reference it in your project's package.json:
// package.json
{
  "name": "my-project",
  "prettier": "@difz-dcc/prettier-config"
  //  ...
}

Extending This Config

You shouldn't have to extend this config, this is intended for special cases only:

// prettier.config.js
module.exports = {
  ...require("@difz-dcc/prettier-config"),
  semi: false,
};

Publishing Updates

This repo's configured azure pipeline will trigger off a PR merge to main. Be certain to increment the package version to ensure the package publishes successfully, otherwise it will not overwrite an existing package version and the pipeline will fail.

NPM Authentication

Authentication takes place in the pipeline as a script using the configured NPM service through an access token. You can view the configuration in Azure DevOps under Project Settings > Service connections.

0.1.6

8 months ago