-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwmroi_htmlcsrc
45 lines (43 loc) · 3.78 KB
/
wmroi_htmlcsrc
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
38
39
40
41
42
43
44
45
{
// Web Marketing ROI 'htmlcs' Configuration File
// Credit to http://codeguide.co/ and https://google.github.io/styleguide/htmlcssguide.xml for coding standards inspiration
//
// Changelog:
// - Monday 27 June 2016: Set 'img-width-height' to false since enforcing this rule can sometimes break responsiveness (@jamesspittal)
"asset-type": true, // true: Default value of attribute "type" (<link>/<style>/<script>) should not be set
"attr-lowercase": true, // true: Attribute name must be lowercase
"attr-no-duplication": true, // true: Attribute name can not been duplication
"attr-value-double-quotes": true, // true: Attribute value must be closed by double quotes
"bool-attribute-value": true, // true: Value of boolean attributes (allowfullscreen, async, autofocus, ...) should not be set
"button-name": true, // true: Attribute "name" of <button> should not be set
"button-type": true, // true: Attribute "type" of <button> should be set
"charset": true, // true: <meta charset> required
"css-in-head": true, // true: Css contents (link[rel=stylesheet], style) should to be in <head>
"doctype": true, // true: DOCTYPE required
"html-lang": true, // true: Attribute "lang" of <html> should be set
"id-class-ad-disabled": true, // true: Id and class can not use ad-relative keyword, it will be blocked by adblock software
"ie-edge": true, // true: <meta http-equiv="X-UA-Compatible" content="IE=Edge"> required
"img-alt": true, // true: Attribute "alt" of <img> should be set
"img-src": true, // true: Attribute "src" of <img> should not be empty
"img-title": false, // true: Attribute "title" of <img> should not be set
"img-width-height": false, // true: Attribute "width" & "height" of <img> should be set
"indent-char": "space-2", // "space-2": Line should indent with 2 spaces. Default is 'space-4'.
"lowercase-class-with-hyphen": true, // true: ClassName should be lowercase words connected with hyphens
"lowercase-id-with-hyphen": true, // true: Id should be lowercase words connected with hyphens
"rel-stylesheet": true, // true: Attribute "rel" of imported css (<link>) should be set as "stylesheet"
"script-content": true, // true: Content of <script> must meet standard
"script-in-tail": false, // true: Js contents (script:not([type]), script[type="text/javascript"]) should be in the tail of <body>
"self-close": "no-close", // "no-close": Void tags should not close themeselves with "/"
"spec-char-escape": true, // true: Special characters must be escaped
"style-content": true, // true: Content of <style> must meet standard
"style-disabled": true, // true: Style tag can not be used
"tag-pair": true, // true: Tag must be paired
"tagname-lowercase": true, // true: Tagname must be lowercase
"title-required": true, // true: <title> required
"unique-id": true, // true: Id should be unique in page
"viewport": true, // true: <meta name="viewport" content="..."> required
"max-error": 0, // max num of errors, 0 means no limit
"format": {}, // basic options for format
"linters": {}, // extra linters ('scipt', 'style')
"default": true // flag for unit test
}