Mirror of eslint node package for pre-commit.
pre-commit
pre-commit Mirror: 5.1.0
Latest commit 77f4d2a Jul 14, 2018
Permalink
Failed to load latest commit information.
.npmignore Add .npmignore Dec 22, 2015
.pre-commit-hooks.yaml Mirror: 5.1.0 Jul 13, 2018
.version Mirror: 5.1.0 Jul 13, 2018
README.md Replace sha: with rev: in documentation Jun 21, 2018
package.json Mirror: 1.7.0 Dec 13, 2015

README.md

eslint mirror

Mirror of eslint package for pre-commit.

For pre-commit: see https://github.com/pre-commit/pre-commit

For eslint: see https://github.com/eslint/eslint

Using eslint with pre-commit

Add this to your .pre-commit-config.yaml:

-   repo: https://github.com/pre-commit/mirrors-eslint
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: eslint

When using plugins with eslint you'll need to declare them under additional_dependencies. For example:

-   repo: https://github.com/pre-commit/mirrors-eslint
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: eslint
        additional_dependencies:
        -   eslint@4.15.0
        -   eslint-config-google@0.7.1
        -   eslint-loader@1.6.1
        -   eslint-plugin-react@6.10.3
        -   babel-eslint@6.1.2