-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-hooks.yaml
37 lines (37 loc) · 1.34 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- id: forbid-html-img-without-alt-text
name: HTML img tag alt text checker
description: "List every <img> tag without a alt= or data-ng-attr-alt= attribute"
entry: forbid_html_img_without_alt_text
language: python
files: .*\.(html|hbs)$
- id: forbid-non-std-html-attributes
name: Non-standard HTML attributes checker
description: "Detect any non-standard attribute that is not prefixed with data-"
entry: forbid_non_std_html_attributes
language: python
args:
- --extra-known-attributes
- content,http-equiv,placeholder,role,style
files: .*\.(html|hbs)$
- id: detect-missing-css-classes
name: Missing CSS classes checker
description: Detect unused or missing CSS classes definitions, and abort if any of the later ones is found
entry: detect_missing_css_classes
language: python
files: .*\.(css|hbs|html)$
- id: html-tags-blacklist
name: Forbid some HTML tags
entry: html_tags_blacklist
language: python
args:
- --forbidden-tags
- basefont,blink,center,font,marquee,s,strike,tt,u
files: \.(html|hbs)$
- id: html-attributes-blacklist
name: Forbid some HTML attributes
entry: html_attributes_blacklist
language: python
args:
- --forbidden-attributes
- align,alink,background,basefont,bgcolor,border,color,link,text,vlink
files: \.(html|hbs)$