Apply new lint rules in more packages (#15521)

This commit is contained in:
Andy
2017-03-30 12:33:22 -07:00
committed by GitHub
parent 4173a37d30
commit 4cac3c5b44
59 changed files with 503 additions and 544 deletions

View File

@@ -1,15 +1,15 @@
import * as parser from 'xml2json';
var xml = "<foo attr=\"value\">bar</foo>";
let xml = "<foo attr=\"value\">bar</foo>";
// xml to json
var jsonString: string = parser.toJson(xml);
const jsonString: string = parser.toJson(xml);
// json to xml
var xml: string = parser.toXml(jsonString);
xml = parser.toXml(jsonString);
// xml to json in object mode and JsonOptions
var jsonObject: {} = parser.toJson(xml, {
const jsonObject: {} = parser.toJson(xml, {
object: true,
reversible: false,
coerce: false,
@@ -19,6 +19,6 @@ var jsonObject: {} = parser.toJson(xml, {
});
// json to xml with XmlOptions
var xml: string = parser.toXml(jsonObject, {
xml = parser.toXml(jsonObject, {
sanitize: true
});