New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@osdevisnot/prettier

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osdevisnot/prettier

Sensible Code Formatting Setup in **One Command**

latest
Source
npmnpm
Version
6.0.0
Version published
Maintainers
1
Created
Source

@osdevisnot/prettier

Sensible Code Formatting Setup in One Command

$ yarn add --dev @osdevisnot/prettier

or

npm install --save-dev @osdevisnot/prettier

What

Setup prettier, husky and pretty-quick just by installing @osdevisnot/prettier

Uses postinstall scripts to automatically configure the project.

How

  • This package brings in prettier, husky, pretty-quick and prettier-plugin-packagejson as dependencies.

  • These dependencies are marked with * so that you always get latest versions for these dependencies.

  • When installed, we use a postinstall script to configure project with sensible defaults:

  • sets prettier property in package.json to @osdevisnot/prettier if not already defined

  • removes .prettierrc and prettier.config.js if these files exist

  • sets husky property in package.json to use pretty-quick on pre-commit (if not already defined) :

{ "husky": { "hooks": { "pre-commit": "pretty-quick --staged" } } }

FAQs

Package last updated on 12 Jul 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