diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-06-28 20:58:49 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-06-28 20:58:49 +0100 |
| commit | d046c4297a04b6eecadf01093382b72bb1b71032 (patch) | |
| tree | d90fc8dde051f2dba93c41f77506f472269124ba /lib | |
| parent | f557dc7de5fd0dff3a08808e7c4d9736970e6349 (diff) | |
Replace jshint with eslint
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 2 | ||||
| -rw-r--r-- | lib/docx/docx-reader.js | 2 | ||||
| -rw-r--r-- | lib/main.js | 2 | ||||
| -rw-r--r-- | lib/style-reader.js | 2 | ||||
| -rw-r--r-- | lib/writers/markdown-writer.js | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 740fc30..f2d5229 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -277,7 +277,7 @@ function DocumentConversion(options) { var children = convertElements(element.body, messages); var backLink = Html.elementWithTag(htmlPaths.element("p", {}, {fresh: false}), [ Html.text(" "), - Html.freshElement("a", {href: "#" + noteRefHtmlId(element)}, [Html.text("↑")]), + Html.freshElement("a", {href: "#" + noteRefHtmlId(element)}, [Html.text("↑")]) ]); var body = children.concat([backLink]); diff --git a/lib/docx/docx-reader.js b/lib/docx/docx-reader.js index 8627022..8ef4960 100644 --- a/lib/docx/docx-reader.js +++ b/lib/docx/docx-reader.js @@ -55,7 +55,7 @@ function read(docxFile, input) { return result.notes.flatMap(function(notes) { var reader = new DocumentXmlReader({ bodyReader: bodyReader, - notes: notes, + notes: notes }); return reader.convertXmlToDocument(xml); }); diff --git a/lib/main.js b/lib/main.js index f59064f..f6e149f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,3 +1,5 @@ +/* global process */ + var fs = require("fs"); var path = require("path"); diff --git a/lib/style-reader.js b/lib/style-reader.js index af6206c..9969bbe 100644 --- a/lib/style-reader.js +++ b/lib/style-reader.js @@ -151,7 +151,7 @@ function htmlPathRule() { return option.map(function() { return true; }).valueOrElse(false); - } + } ); var tagNamesRule = lop.rules.oneOrMoreWithSeparator( diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 872db13..079d924 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -76,7 +76,7 @@ var htmlToMarkdown = { "strong": symmetricMarkdownElement("__"), "em": symmetricMarkdownElement("*"), "a": markdownLink, - "img": markdownImage, + "img": markdownImage }; (function() { |
