@dangl/prettier-config-dangl

Prettier Config for Dangl IT projects


Keywords
prettier, prettier-config
License
MIT
Install
npm install @dangl/prettier-config-dangl@0.1.14

Documentation

prettier-config-dangl

Prettier configuration used in Dangl IT GmbH projects.

Installation

Install as a dev dependency (along with Prettier) via npm:

npm install --save-dev @dangl/prettier-config-dangl

Usage

  1. Create a file named prettier.config.js with the following contents:
'use strict';

module.exports = require("@dangl/prettier-config-dangl");
  1. Add a Prettier script to package.json:
{
  "scripts": {
    "prettier": "prettier --write \"**/*.js\""
  }
}

Adjust the glob pattern as needed to include more file extensions. For example, "**/*.{js,ts}" will format both JavaScript and TypeScript files. Files can be excluded with a .prettierignore file.