diff --git a/lib/rules/prettier.js b/lib/rules/prettier.js index 77105695..1ae1d058 100644 --- a/lib/rules/prettier.js +++ b/lib/rules/prettier.js @@ -44,8 +44,9 @@ module.exports = { if (sourceCode.text !== desiredText) { // Find the first character that differs - const firstBadIndex = Array.from(desiredText) - .findIndex((char, index) => char !== sourceCode.text[index]); + const firstBadIndex = Array.from(desiredText).findIndex( + (char, index) => char !== sourceCode.text[index] + ); const expectedChar = firstBadIndex === -1 ? 'EOF' : desiredText[firstBadIndex]; diff --git a/package.json b/package.json index 5e75f7f2..d2343af1 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ "eslint": "^3.14.1", "eslint-config-not-an-aardvark": "^2.0.0", "eslint-config-prettier": "^1.3.0", - "eslint-plugin-eslint-plugin": "^0.2.1", - "eslint-plugin-node": "^3.0.5", + "eslint-plugin-eslint-plugin": "^0.7.1", + "eslint-plugin-node": "^4.2.2", "mocha": "^3.1.2", - "prettier": "^0.18.0" + "prettier": "^1.3.1" }, "engines": { "node": ">=4.0.0"