1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

add editor config and jsbeaturifyrc

This commit is contained in:
Rv Colombia 02 2018-12-06 10:25:54 -05:00
parent 225aa3f096
commit d4f6f6a6ec
2 changed files with 79 additions and 0 deletions

38
.editorconfig Normal file
View File

@ -0,0 +1,38 @@
# EditorConfig is awesome: http://EditorConfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
max_line_length = 80
trim_trailing_whitespace = true
insert_final_newline = true
[*.html]
indent_style = space
indent_size = 4
[*.{css,scss,less}]
indent_style = space
indent_size = 2
[*.js]
indent_style = space
indent_size = 2
[*.json]
indent_style = space
indent_size = 2
[*.txt]
indent_style = space
indent_size = 4
[*.{diff,md}]
trim_trailing_whitespace = false

41
.jsbeautifyrc Normal file
View File

@ -0,0 +1,41 @@
{
"editorconfig" : true,
"indent_size" : 2,
"html": {
"indent_size" : 4,
"indent_char" : " ",
"end_with_newline" : true,
"wrap_attributes" : "force-aligned",
"brace_style" : "end-expand",
"unformatted" : ["abbr", "area", "audio", "b", "bdi", "bdo", "br","canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "i", "iframe", "img", "ins", "kbd", "keygen", "label", "map", "mark", "math", "meter", "noscript", "object", "output", "progress", "q", "ruby", "s", "samp", "select", "small", "span", "strong", "sub", "sup", "svg", "template", "textarea", "time", "u", "var", "video", "wbr", "text", "acronym", "address", "big", "dt", "ins", "strike", "tt", "link", "meta", "option", "script"],
"beautifiers" : [
"JS-Beautify"
],
"js": {
"indent_size": 2
},
"css": {
"indent_size": 2
}
},
"css": {
"beautifiers" : [
"Prettier",
"Pretty Diff",
"JS-Beautify"
],
"align_assignments" : true,
"indent_size" : 2,
"end_with_comma" : true,
"end_with_newline" : true
},
"JavaScript": {
"indent_size" : 2,
"indent_char" : " ",
"align_assignments" : true,
"preserve-newlines" : true,
"beautifiers" : [
"Pretty Diff"
]
}
}