GitHub - pre-commit/mirrors-eslint: Mirror of eslint node package for pre-commit. (original) (raw)

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:

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

By default only *.js files are taken into consideration. If you want to use eslint on TypeScript codebases you need to start from this template: