Skip to content

Commit 1700e41

Browse files
Upgrade: prettier to 0.18.0
1 parent c979b84 commit 1700e41

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: lib/rules/prettier.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module.exports = {
4444

4545
if (sourceCode.text !== desiredText) {
4646
// Find the first character that differs
47-
const firstBadIndex = Array
48-
.from(desiredText)
47+
const firstBadIndex = Array.from(desiredText)
4948
.findIndex((char, index) => char !== sourceCode.text[index]);
5049
const expectedChar = firstBadIndex === -1
5150
? 'EOF'

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"eslint-plugin-eslint-plugin": "^0.2.1",
3636
"eslint-plugin-node": "^3.0.5",
3737
"mocha": "^3.1.2",
38-
"prettier": "^0.13.1"
38+
"prettier": "^0.18.0"
3939
},
4040
"engines": {
4141
"node": ">=4.0.0"

0 commit comments

Comments
 (0)