@swimlane/prettier-config-swimlane

3.0.3 • Public • Published

prettier-config-swimlane

Prettier configuration used in Swimlane projects.

Installation

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

npm install --save-dev @swimlane/prettier-config-swimlane prettier@latest

Usage

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

module.exports = require('@swimlane/prettier-config-swimlane');
  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.

Executing npm run prettier will now format a project's files.

License

MIT

Credits

prettier-config-swimlane is a Swimlane open-source project; we believe in giving back to the open-source community by sharing some of the projects we build.

Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.

/@swimlane/prettier-config-swimlane/

    Package Sidebar

    Install

    npm i @swimlane/prettier-config-swimlane

    Weekly Downloads

    1,355

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    4.04 kB

    Total Files

    5

    Last publish

    Collaborators

    • varsha_swimlane
    • kodalipraveen
    • mohanalakshmi.s
    • nikshithkolan
    • steveblue
    • kasiviswanathan.mangudi
    • koushik.kumar
    • dmytro_skorokhodov
    • melissa.vankempen
    • sasha.polishchuk
    • dabbott-sl
    • daniel.selig
    • jogaj_26
    • markcoleman1
    • caleb.bass
    • hansstoetzer
    • sarath.pantula
    • nikkuman
    • agustin.firpo
    • tmcclure
    • ischultz-swimlane
    • bensteele7
    • brantw
    • marjan-georgiev
    • danstory
    • seangrimes
    • adamfrank
    • bageldawg
    • it.admin.swim
    • smartinski
    • lisa-reynolds
    • royar95
    • mr_charlie
    • swimlane.dev