Skip to content

Commit

Permalink
Upgrade: prettier to 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Feb 26, 2017
1 parent c979b84 commit 1700e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/rules/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ module.exports = {

if (sourceCode.text !== desiredText) {
// Find the first character that differs
const firstBadIndex = Array
.from(desiredText)
const firstBadIndex = Array.from(desiredText)
.findIndex((char, index) => char !== sourceCode.text[index]);
const expectedChar = firstBadIndex === -1
? 'EOF'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-plugin-eslint-plugin": "^0.2.1",
"eslint-plugin-node": "^3.0.5",
"mocha": "^3.1.2",
"prettier": "^0.13.1"
"prettier": "^0.18.0"
},
"engines": {
"node": ">=4.0.0"
Expand Down

0 comments on commit 1700e41

Please sign in to comment.