Socket
Book a DemoInstallSign in
Socket

@scentregroup/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
Package was removed
Sorry, it seems this package was removed from the registry

@scentregroup/prettier-config

Prettier config for Scentre Group projects.

0.1.0
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Scentre Group Prettier Config

This package contains Scentre Group's Prettier configuration.

Usage

  • Run yarn add prettier@1.8.2 @scentregroup/prettier-config --dev
  • Run touch .prettierrc.js
  • Add the following snippet to the file:
module.exports = require('@scentregroup/prettier-config')
  • Add a format task to scripts in package.json: prettier --write '**/*.{js,css,scss}'
  • If you would like a watch task for format, yarn add onchange --dev, and add a format:watch task to scripts in package.json: onchange '**/*.{js,css,scss}' -- prettier --write {{changed}}

Development

If you would like to try out the repository locally:

  • Run git clone git@github.com:ScentreGroup/javascript_config.git
  • cd javascript_config/prettier-config
  • Create a global link to this repository via yarn link
  • In the repository you would like to test, run yarn link @scentregroup/prettier-config.
  • You can then proceed as per the Usage section.

Contents

This configuration file changes the following:

  • Removes unnecessary semicolons
  • Enforces the use of single quotes instead of double quotes

FAQs

Package last updated on 29 Nov 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.