feat(*): Add code formatting restrictions

This commit is contained in:
2020-10-25 22:16:22 +00:00
parent 9f9b892b6a
commit 36d343b5da
3 changed files with 41 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = crlf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null
+25
View File
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"node": true,
"es2020": true,
"jquery": true
},
"extends": [
"airbnb",
"prettier",
"plugin:node/recommended"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": [
"error"
],
"linebreak-style": 2,
"no-unused-vars": "warn",
"no-param-reassign": "off",
"no-alert": "warn"
}
}
+4
View File
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"singleQuote": true
}