Skip to content

Commit

Permalink
Merge pull request #9 from rogeriopvl/chore/add-prettier-and-eslint
Browse files Browse the repository at this point in the history
style: add prettier and eslint
  • Loading branch information
rogeriopvl authored Sep 10, 2018
2 parents 2b0ae4f + 1b52578 commit f499546
Show file tree
Hide file tree
Showing 7 changed files with 1,234 additions and 407 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"node": true,
"mocha": true,
"amd": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printwidth": 80,
"singleQuote": true
}
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js:
- 'stable'
- stable
- lts/*
- 6
- 4
Loading

0 comments on commit f499546

Please sign in to comment.