Skip to content

Commit

Permalink
Fix/linting (#3)
Browse files Browse the repository at this point in the history
* adding lint fixes

* adding lint fixes and so forth
  • Loading branch information
natedsaint committed Sep 19, 2017
1 parent 7f1344f commit b5c23e3
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 356 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Expand Up @@ -13,6 +13,7 @@
},
"rules": {
"no-console":0,
"no-useless-escape":0,
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }]
}
}
3 changes: 3 additions & 0 deletions .travis.yml
@@ -1,5 +1,8 @@
language: node_js
node_js:
- "7.2.0"
script:
- npm run lint
- npm test
after_script:
- npm run coveralls
2 changes: 1 addition & 1 deletion lib/util.js
Expand Up @@ -19,6 +19,6 @@ exports.exists = function(file, isDir) {
var HTMLspecial = {"<": "&lt;", "&": "&amp;", "\"": "&quot;"};

exports.escapeHTML = function escapeHTML(text) {
return String(text).replace(/[<&\"]/g, function(ch) {return HTMLspecial[ch];});
return String(text).replace(/[<&\"]/g, (ch) => {return HTMLspecial[ch];});
};

0 comments on commit b5c23e3

Please sign in to comment.