Socket
Book a DemoInstallSign in
Socket

@build-chores/staged

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@build-chores/staged

Staging JS projects is complicated.

0.9.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@build-chores/staged

Staging JS projects is complicated.

Synopsis

License: GPL v3 npm version Build Status

Stage files of your JS project before committing them with git.

Usage

Install the @build-chores/staged package into your project:

yarn install --dev @build-chores/staged

Use Husky to lint your stage whenever you commit.

yarn add --dev husky

Place a pre-commit hook in your .huskyrc. The following example hook only lints your stage when committing to the master branch. See the example .huskyrc for a template.

{
  "hooks": {
    "pre-commit": "! git rev-parse --abbrev-ref HEAD | grep -q master || lint-staged -c @build-chores/staged"
  }
}

To make sure that prettier isn't touching the package.json file during staging, place a .prettierignore file. See the example .prettierignore for a template.

package.json

You are ready to lint your staged files before committing.

Contribute

Check out our contributing.md to get started.

License

FAQs

Package last updated on 26 Feb 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

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.