Convert var to const/let (except in browser-only code).

This commit is contained in:
David Anson 2018-04-27 22:05:34 -07:00
parent 78c1af7bfd
commit 213aef4564
56 changed files with 524 additions and 518 deletions

View file

@ -1,8 +1,8 @@
"use strict";
var markdownlint = require("../lib/markdownlint");
const markdownlint = require("../lib/markdownlint");
var options = {
const options = {
"files": [ "good.md", "bad.md" ],
"strings": {
"good.string": "# good.string\n\nThis string passes all rules.",
@ -11,7 +11,7 @@ var options = {
};
// Makes a synchronous call, using result.toString for pretty formatting
var result = markdownlint.sync(options);
const result = markdownlint.sync(options);
console.log(result.toString());
// Makes an asynchronous call