mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-10-31 23:07:47 +00:00
41 lines
1.5 KiB
YAML
Executable File
41 lines
1.5 KiB
YAML
Executable File
- repo: git://github.com/pre-commit/pre-commit-hooks
|
|
sha: v0.9.1
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: trailing-whitespace
|
|
args:
|
|
- --no-markdown-linebreak-ext
|
|
- repo: git://github.com/Lucas-C/pre-commit-hooks
|
|
sha: v1.0.1
|
|
hooks:
|
|
- id: remove-crlf
|
|
exclude: npp/.*\.xml
|
|
- id: remove-tabs
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-html
|
|
sha: v1.3.5
|
|
hooks:
|
|
- id: validate-html
|
|
args:
|
|
- --remove-mustaches
|
|
- --mustache-remover=jinja2
|
|
- --mustache-remover-env
|
|
- SUPPORTS
|
|
- "[('name', 'link', 'logo_url', 'title')]"
|
|
- --templates-include-dir=templates
|
|
- "--ignore=Expected \"<!DOCTYPE html>\""
|
|
- "--ignore=Element \"title\" must not be empty"
|
|
- "--ignore=Element \"head\" is missing a required instance of child element \"title\""
|
|
- "--ignore=The \"itemprop\" attribute was specified, but the element is not a property of any item"
|
|
- "--ignore=Bad value \"DUMMY\" for attribute \"datetime\""
|
|
- "--ignore=Bad value \"DUMMY\" for attribute \"lang\" on element \"html\""
|
|
- "--ignore=Bad value \"DUMMY\" for attribute \"type\" on element \"link\": Subtype missing"
|
|
files: ^templates/[^/]*\.html$
|
|
exclude: ^templates/(index|tipue_search)\.html$
|
|
- repo: local
|
|
hooks:
|
|
- id: eslint
|
|
name: eslint
|
|
language: system
|
|
entry: make eslint
|
|
files: ''
|