Skip to content

Commit

Permalink
adding eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesimos committed Dec 31, 2019
1 parent 76c87b3 commit 0e5b7b3
Show file tree
Hide file tree
Showing 22 changed files with 3,894 additions and 848 deletions.
31 changes: 31 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["airbnb", "prettier", "plugin:node/recommended"],
"plugins": ["prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "off",
"func-names": "off",
"no-process-exit": "off",
"no-underscore-dangle": [
2,
{
"allow": ["__v", "_id"]
}
],
"object-shorthand": "off",
"class-methods-use-this": "off"
}
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
Loading

0 comments on commit 0e5b7b3

Please sign in to comment.