Skip to content

Commit

Permalink
Upgrade deps and fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Jul 28, 2019
1 parent bbce539 commit bec2758
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "@alhadis",
"parser": "babel-eslint",
"rules": {
"require-atomic-updates": 0
},
"overrides": [{
"files": ["lib/postproc/postprocessor.mjs"],
"rules": {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"devDependencies": {
"@alhadis/eslint-config": "^1.2.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.15.1",
"rollup": "^1.6.0",
"terser": "^3.17.0",
"mocha": "^6.0.2",
"mocha-when": "^1.0.0",
"babel-eslint": "^10.0.2",
"eslint": "^6.1.0",
"rollup": "^1.17.0",
"terser": "^4.1.2",
"mocha": "^6.2.0",
"mocha-when": "^1.0.1",
"chai": "^4.2.0"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions test/2.2-groff.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ describe("GroffAdapter", function(){
const input = "→ “Foo — Bar” ←\n";
expect(await groff.format(input, "ascii", {fixEncoding: false})).to.match(/^ +Foo +Bar\s*$/);
expect(await groff.format(input, "utf8", {fixEncoding: false})).to.match(/^â +âFoo â Barâ +â\s*$/);
expect(await groff.format(input, "ascii", {fixEncoding: true})).to.match(/^-> "Foo -- Bar" <-\s*$/);
expect(await groff.format(input, "ascii", {fixEncoding: true})).to.match(/^-> +"Foo -- Bar" +<-\s*$/);
expect(await groff.format(input, "utf8", {fixEncoding: true})).to.match(/^→ +“Foo — Bar” + ←\s*$/);
});

Expand Down Expand Up @@ -405,7 +405,7 @@ describe("GroffAdapter", function(){

it("formats tables", async () => {
const input = ".TS\ntab(|);\nlb l li .\n_\nFoo|Bar|Baz\n.TE\n";
expect(await groff.format(input, "ascii", {tables: false})).to.match(/^tab\(\|\); lb l li \. _ Foo\|Bar\|Baz\s*$/);
expect(await groff.format(input, "ascii", {tables: false})).to.match(/^tab\(\|\); lb l li \. +_ Foo\|Bar\|Baz\s*$/);
expect(await groff.format(input, "ascii", {tables: true})).to.match(/^-+\n\x1B\[1mFoo +\x1B\[22mBar +\x1B\[4mBaz/);
expect(await groff.format(input, "utf8", {tables: true})).to.match(/^─+\n\x1B\[1mFoo +\x1B\[22mBar +\x1B\[4mBaz/);
});
Expand Down

0 comments on commit bec2758

Please sign in to comment.