Skip to content

Commit

Permalink
Adds formatting configurations
Browse files Browse the repository at this point in the history
Includes prettier support
  • Loading branch information
deiga committed Oct 13, 2019
1 parent b584672 commit b5d5eef
Show file tree
Hide file tree
Showing 5 changed files with 900 additions and 779 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
30 changes: 17 additions & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"extends": ["airbnb-base", "eslint:recommended", "plugin:node/recommended"],
"plugins": [
"import",
"node"
],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }]
},
"env": {
"node": true,
"es6": true
}
}
"extends": ["airbnb-base", "eslint:recommended", "plugin:node/recommended", "prettier"],
"plugins": [
"import",
"node",
"prettier"
],
"rules": {
"no-console": ["error", {
"allow": ["warn", "error"]
}],
"prettier/prettier": "error"
},
"env": {
"node": true,
"es6": true
}
}
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "es5",
"singleQuote": true
}
Loading

0 comments on commit b5d5eef

Please sign in to comment.