Skip to content

nikolareljin/wp-precommit-hooks

Repository files navigation

WordPress pre-commit git hooks

WP Pre-Commit Hooks

Will check for the code standards in PHP and JavaScript/React.

Include in your projects

Include the project in your Composer file:

*nikolareljin/wp-precommit-hooks*

You can run :

composer require nikolareljin/wp-precommit-hooks -dev -vv

Or include the plugin in your composer file:

{
  "name": "testing-the-plugin",
  "type": "project",
  "description": "testing how git commit hooks work",
  "require": {
    "php": ">=7.1"
  },
  "require-dev": {
    "php": ">=7.1",
    "nikolareljin/wp-precommit-hooks": ">=1.0.2"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

Usage

On git commit, it will trigger code checkup for WP and React/Gutenberg standards.

Run / Install

In the terminal, run:

npm install

composer install

About

Wordpress pre-commit hooks with PHP Linting and ES Linting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published