diff --git a/src/cli/cli.mjs b/src/cli/cli.mjs index 95be1568..cf5957e3 100755 --- a/src/cli/cli.mjs +++ b/src/cli/cli.mjs @@ -1,5 +1,5 @@ #!/usr/bin/env node -'use strict'; + /*eslint-disable no-console*/ import fs from 'fs'; import path from 'path'; diff --git a/src/cli/read.js b/src/cli/read.js index f08516a5..1cf96c18 100644 --- a/src/cli/read.js +++ b/src/cli/read.js @@ -1,4 +1,4 @@ -'use strict'; + // Copyright 2013 Timothy J Fontaine // diff --git a/src/fxp.js b/src/fxp.js index 690fa637..e9882b5a 100644 --- a/src/fxp.js +++ b/src/fxp.js @@ -1,4 +1,4 @@ -'use strict'; + import * as XMLValidator from './validator.js'; import XMLParser from './xmlparser/XMLParser.js'; diff --git a/src/util.js b/src/util.js index 309c4ad1..8fb82c05 100644 --- a/src/util.js +++ b/src/util.js @@ -1,4 +1,4 @@ -'use strict'; + const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; diff --git a/src/xmlbuilder/json2xml.js b/src/xmlbuilder/json2xml.js index 8a6d283e..78a11aff 100644 --- a/src/xmlbuilder/json2xml.js +++ b/src/xmlbuilder/json2xml.js @@ -1,4 +1,4 @@ -'use strict'; + //parse Empty Node as self closing node import buildFromOrderedJs from './orderedJs2Xml.js'; diff --git a/src/xmlparser/OrderedObjParser.js b/src/xmlparser/OrderedObjParser.js index 3c2f1428..6790d6d4 100644 --- a/src/xmlparser/OrderedObjParser.js +++ b/src/xmlparser/OrderedObjParser.js @@ -1,4 +1,4 @@ -'use strict'; + ///@ts-check import * as util from '../util.js'; diff --git a/src/xmlparser/node2json.js b/src/xmlparser/node2json.js index 8210f45c..f00b41af 100644 --- a/src/xmlparser/node2json.js +++ b/src/xmlparser/node2json.js @@ -1,4 +1,4 @@ -'use strict'; + /** * diff --git a/src/xmlparser/xmlNode.js b/src/xmlparser/xmlNode.js index 8177d352..a129b8cb 100644 --- a/src/xmlparser/xmlNode.js +++ b/src/xmlparser/xmlNode.js @@ -1,4 +1,4 @@ -'use strict'; + class XmlNode{ constructor(tagname) {