Socket
Book a DemoInstallSign in
Socket

ggstyle

Package Overview
Dependencies
Maintainers
5
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ggstyle

Greater Goods Style Guide

1.5.7
latest
Source
npmnpm
Version published
Weekly downloads
27
1250%
Maintainers
5
Weekly downloads
 
Created
Source

Greater Goods Style Guide


This is a fork of Happiness, which in turn is a fork of Standard.

Usage

Install globally:

$ npm install ggstyle -g

After you've done that you should be able to use the ggstyle program. The simplest use case would be checking the style of all TypeScript or JavaScript files in the current working directory:

$ ggstyle
Error: Use Greater Goods Style
  lib/torrent.js:950:11: Expected '===' and instead saw '=='.

You can optionally pass in a directory (or directories) using the glob pattern. Be sure to quote paths containing glob patterns so that they are expanded by standard instead of your shell:

$ ggstyle "src/util/**/*.js" "test/**/*.js"

To disable the linter on a certain file or line, or disable a specific rule, refer to this guide

Making Changes

Clone down the project and install packages:

$ git clone https://github.com/dmdbrands/gg_styleGuide
$ cd gg_styleGuide
$ npm install

Make changes and commit, then update the version and publish:

$ npm adduser
Username: <dev_gg>
Password: < >
Email: (this IS public) <dev@greatergoods.com>
Logged in as dev_gg on https://registry.npmjs.org/.
$ npm version <patch> <minor> <major>
$ npm publish

Some changes may require you to alter gg-standard-engine instead, such as what file types the linter checks.

Keywords

JavaScript Happiness Style

FAQs

Package last updated on 23 Aug 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.