🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more →
Socket
Book a DemoInstallSign in
Socket

@andyfangdz/prettierrc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andyfangdz/prettierrc

[![Greenkeeper badge](https://badges.greenkeeper.io/andyfangdz/prettierrc.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/andyfangdz/prettierrc.svg?branch=master)](https://travis-ci.org/andyfangdz/prettierrc) [![code style: prettier]

latest
Source
npmnpm
Version
7.0.0
Version published
Maintainers
1
Created
Source

andyfangdz Prettier Config

Greenkeeper badge Build Status code style: prettier

Based on sourcegraph/prettierrc

Usage

npm install --save-dev @andyfangdz/prettierrc

Then add this prettier.config.js to the project:

module.exports = require('@andyfangdz/prettierrc')

Example scripts to go in package.json:

{
    "prettier": "prettier --write src/**/*.js src/**/*.jsx src/**/*.css src/*.jsx src/*.js",
    "prettier-watch": "onchange 'src/*.jsx' 'src/*.js' 'src/**/*.js' 'src/**/*.jsx' 'src/**/*.css' -- prettier --write {{changed}}"
}

Making changes

npm link
cd <project>
npm link @andyfangdz/prettierrc
npm run prettier

Publish a new version

Follow semver. Changing or adding a rule is a breaking change and requires a new major version.

npm version major|minor|patch
git push
git push --tags
npm publish

Keywords

prettier

FAQs

Package last updated on 17 Sep 2019

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