Skip to content

Commit

Permalink
Use Prettier JS (#5017)
Browse files Browse the repository at this point in the history
* Adds prettier

* Run lint before tests
  • Loading branch information
flovilmart committed Sep 1, 2018
1 parent 189cd25 commit d83a0b6
Show file tree
Hide file tree
Showing 240 changed files with 40,570 additions and 28,492 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Expand Up @@ -14,7 +14,7 @@
"sourceType": "module"
},
"rules": {
"indent": ["error", 2],
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": 2,
"eol-last": 2,
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc
@@ -0,0 +1,3 @@
semi: true
trailingComma: "es5"
singleQuote: true
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -48,6 +48,7 @@ before_script:
- silent=1 mongodb-runner --start
- greenkeeper-lockfile-update
script:
- npm run lint
- npm run coverage
after_script:
- greenkeeper-lockfile-upload
Expand Down

0 comments on commit d83a0b6

Please sign in to comment.