Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

@scentregroup/prettier-config

Prettier config for Scentre Group projects.

  • 0.1.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Scentre Group Prettier Config

This package contains Scentre Group's Prettier configuration.

Usage

  1. Run yarn add prettier@1.8.2 @scentregroup/prettier-config --dev
  2. Run touch .prettierrc.js
  3. Add the following snippet to the file:
module.exports = require('@scentregroup/prettier-config')
  1. Add a format task to scripts in package.json: prettier --write '**/*.{js,css,scss}'
  2. 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:

  1. Run git clone git@github.com:ScentreGroup/javascript_config.git
  2. cd javascript_config/prettier-config
  3. Create a global link to this repository via yarn link
  4. In the repository you would like to test, run yarn link @scentregroup/prettier-config.
  5. 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc