Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit fa3d4af

Browse files
committed
chore: run prettier on precommit
1 parent d795ff4 commit fa3d4af

File tree

3 files changed

+455
-15
lines changed

3 files changed

+455
-15
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
},
1414
"husky": {
1515
"hooks": {
16-
"pre-commit": "yarn prettier"
16+
"pre-commit": "lint-staged"
1717
}
1818
},
19+
"lint-staged": {
20+
"*.js": [
21+
"yarn prettier",
22+
"git add"
23+
]
24+
},
1925
"repository": {
2026
"type": "git",
2127
"url": "git://github.com/literallycanvas/literallycanvas-core.git"
@@ -41,6 +47,7 @@
4147
"gulp-rename": "~1.2.2",
4248
"gulp-uglify": "~1.5.1",
4349
"husky": "^1.1.2",
50+
"lint-staged": "^7.3.0",
4451
"prettier": "1.14.3",
4552
"uglify-js": "~2.6.1",
4653
"vinyl-source-stream": "~1.1.0",

src/TextRenderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const getNextLine = function(ctx, text, forcedWidth) {
3737
let wasInWord = false;
3838

3939
while (true) {
40-
console.log('boo');
4140
endIndex += 1;
4241
const isEndOfString = endIndex >= text.length;
4342

0 commit comments

Comments
 (0)