1.0.5 • Published 4 years ago

@common-web/lint-staged v1.0.5

Weekly downloads
12
License
MIT
Repository
-
Last release
4 years ago

@common-web/lint-staged

Automatically run linter commands prior to code passes git commit command

Getting started

yarn:

yarn add prettier @common-web/lint-staged -D

npm:

npm install prettier @common-web/lint-staged --save-dev

in your repo create lint-staged.config.js then added the following:

const BaseLintStagedConfig = require('@common-web/lint-staged');

module.exports = BaseLintStagedConfig;

Running Prettier

Add the following to your "scripts" in your package.json

{
    ...,

    "husky": {
        "hooks": {
            "pre-commit": "lint-staged"
        }
    }
}

Examples

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago