Skip to content

Instantly share code, notes, and snippets.

@awebdeveloper
Last active July 4, 2017 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awebdeveloper/e6a85cf10ae252e703ba7851f70e577b to your computer and use it in GitHub Desktop.
Save awebdeveloper/e6a85cf10ae252e703ba7851f70e577b to your computer and use it in GitHub Desktop.
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0
hooks:
- id: trailing-whitespace
- id: check-json
- id: pretty-format-json
args:
- --indent
- '2'
- --no-sort-keys
- id: check-merge-conflict
- id: check-symlinks
- id: check-json
- repo: https://github.com/awebdeveloper/pre-commit-prettier
sha: '55702ab9f48cd9edb063b1516bbdd16bde14af32' # Use the sha or tag you want to point at
hooks:
- id: prettier
additional_dependencies:
- prettier@1.1.0
- repo: https://github.com/pre-commit/mirrors-eslint
sha: v3.18.0
hooks:
- id: eslint
additional_dependencies:
- eslint@3.12.2
- eslint-config-google@0.7.1
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
sha: 'f792d6b33f0673991b8c044b5bb3bcae0399ada5'
hooks:
- id: stylelint
additional_dependencies:
- 'stylelint@7.10.1'
- 'stylelint-config-standard@16.0.0'
- repo: https://github.com/awebdeveloper/pre-commit-imageoptim
sha: 'd3e3c05' # Use the sha or tag you want to point at like 0.0.1
hooks:
- id: imageoptim
additional_dependencies: ['imageoptim-cli']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment