🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@zilahir/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zilahir/prettier-config

Prettier config

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

@zilahir/prettier-config

This package provides a common Prettier configuration, so that all projects have consistent code formatting.

Installation

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

Setup

Create the following file .prettierrc.js

module.exports = require("@zilahir/prettier-config");

Running

As this package only provides the Prettier configuration, it is assumed you already have prettier installed in your project.

  • It's recommended to install the relevant Editor Addons/Plugins and enable "Pretter on Save".

  • It's recommended to add a prettier script to package.json. An example one is:

    scripts: {
      "prettier": "prettier '**/*.{js,json,css,scss,html,hbs,md}' --write"
    }
    

    You can then run the following, to automatically format your project's code:

    npm run prettier
    

Keywords

prettier

FAQs

Package last updated on 18 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts