- Close tags properly, except this ones
<br/>
- HTML properties without space, values between quotes
<tag property="value">text</tag>
-
Indent with 2 spaces
-
Words separated by a dash '-' in the name of the class
<tag class="bad_class_name">texto</tag>
<tag class="correctClassName">texto</tag>
<tag class="correct-class-name">texto</tag>
-
Try to spend less than 80 character by line
-
Use semicolon ';' for sentences ending
-
Style for function
function funcName(arg1,...) {
};
- For function list on React js
class NameClass extends react.Component {
render() {
//some code
}
otherFunction() {
//more code
}
}
- Using traditional require
var express = require("express");
- JSON
// Just one value
{key: "value"}
// More Values
{
key1: value,
key2: value
}
body {
prop: value;
}
- Space after each style
h1 {
prop: value;
}
h2 {
prop: value;
}