coats/.pre-commit-config.yaml
Sorin Sbarnea 38124b8de4 Enable eslint
Running eslint on the code should make it easier to refactor the
code later.

Change-Id: I33cd7c609617d334596049223954dc24448cb1fe
2018-10-09 18:12:28 +01:00

35 lines
937 B
YAML

---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0-1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-json
- id: flake8
- id: debug-statements
- id: requirements-txt-fixer
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.12.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
- repo: https://github.com/openstack-dev/bashate.git
rev: 0.6.0
hooks:
- id: bashate
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v5.6.1 # Use the sha / tag you want to point at
hooks:
- id: eslint
entry: "eslint --format unix"