Skip to content

Commit

Permalink
Upgrade deps and fix errors with ESLint v6.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Oct 31, 2019
1 parent 6f47e3c commit 1b53144
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/postproc/canvas/renderer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export default class TroffCanvasRenderer extends Postprocessor{
this.context.moveTo(this.x, this.y);
this.context.lineTo(
this.x += (args[0] / 2) / this.scale,
this.y += (args[1] / 2) / this.scale
this.y += (args[1] / 2) / this.scale,
);
const tNum = 2;
const tDen = 3;
Expand All @@ -385,7 +385,7 @@ export default class TroffCanvasRenderer extends Postprocessor{
this.x + (args[i] / 2 + (args[i+2] * (tDen - tNum)) / (2 * tDen)) / this.scale,
this.y + (args[i+1] / 2 + (args[i+3] * (tDen - tNum)) / (2 * tDen)) / this.scale,
this.x + nX,
this.y + nY
this.y + nY,
);
this.x += nX;
this.y += nY;
Expand Down
4 changes: 2 additions & 2 deletions lib/postproc/tty/text-grid.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class TextGrid{
* @param {Number} [width=0]
* @param {Number} [height=0]
* @return {TextGrid}
*/
*/
drawLine(width, height = 0){
width = +width || 0;
height = +height || 0;
Expand Down Expand Up @@ -399,7 +399,7 @@ export default class TextGrid{
* @example grid.draw([[5,0], [0,5], [-5,0], [0,-5]]);
* @param {Number[]} lines
* @return {TextGrid}
*/
*/
draw(lines){
for(const [w, h] of lines){
if(0 === w) (h < 0)
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"prepare": "make"
},
"devDependencies": {
"@alhadis/eslint-config": "^1.2.0",
"babel-eslint": "^10.0.2",
"eslint": "^6.1.0",
"rollup": "^1.17.0",
"terser": "^4.1.2",
"mocha": "^6.2.0",
"@alhadis/eslint-config": "^2.0.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.6.0",
"rollup": "^1.26.0",
"terser": "^4.3.9",
"mocha": "^6.2.2",
"mocha-when": "^1.0.1",
"chai": "^4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/3.1-tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe("TTYRenderer", () => {
expect(stdout).to.include(
"<b>groff</b> [<b>-abcegijklpstzCEGNRSUVXZ</b>]"
+ " [<b>-d</b> <u>cs</u>] [<b>-D</b> <u>arg</u>]"
+ " [<b>-f</b> <u>fam</u>] [<b>-F</b> <u>dir</u>]"
+ " [<b>-f</b> <u>fam</u>] [<b>-F</b> <u>dir</u>]",
);
}
});
Expand Down

0 comments on commit 1b53144

Please sign in to comment.