Wondering what’s next for npm?Check out our public roadmap! »

    @swimlane/prettier-setup

    0.1.0 • Public • Published

    prettier-setup

    A CLI tool for adding Prettier to projects.

    Installation

    1. Install globally via npm:
    npm install -g @swimlane/prettier-setup

    Usage

    In a terminal, navigate to a project's directory and run prettier-setup. This will prompt the user for the name of a Prettier configuration package to use (such as @swimlane/prettier-config-swimlane) and a glob pattern of files to format with Prettier. If no Prettier configuration package name is provided, the user will be guided through building one.

    Note: prettier-setup assumes a package.json file exists in the same directory it's invoked in.

    Output

    • Creates a Prettier configuration file named prettier.config.js or .prettierrc.
    • If a .gitignore file is found, creates a .prettierignore file with the same contents as .gitignore.
    • If a .eslintrc file is found, adds eslint-config-prettier as an extended configuration.
    • If a tslint.json file is found, adds tslint-config-prettier as an extended configuration.
    • Adds script prettier to package.json, which will format specified files when executed.

    License

    MIT

    Credits

    prettier-setup 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.

    Install

    npm i @swimlane/prettier-setup

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    15.5 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar