Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@idrinth/automatic-formatting

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idrinth/automatic-formatting

A tool to reformat javascript projects on github

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Automatic Formatting styled with prettier

Building a nodejs javascript formatting service build on prettier, that can handle github webhooks and the github api to provide formatting during pullrequests.

This is currently not using as many promises as desired, but on the other hand the formatting is pretty quick.

How does it work?

It reacts to three different eventgroups send via webhook:

  • push: if the branch is within a pullrequest it'll be checked and if required formatted
  • pull_request: changes the flag for formatting purposes
  • delete: if a branch is deleted will also delete the checkout of it

NPM

NPM is avaible as well, see https://www.npmjs.com/package/@idrinth/automatic-formatting. Installation works as usual, so

npm install @idrinth/automatic-formatting

just remember to adjust the configuration afterwards, that user does not exist.

Configuration

There are two relevant configurations. For one there is a configuration for the service, see config.json for example. There is also a per-project option of configuring prettier and the include/exclude lists by using a .idrinth.automatic-formatting.json file in the root of your project. Other keys in this file will be ignored.

Keywords

FAQs

Package last updated on 09 May 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