diff --git a/package.json b/package.json index 3fdaff1..3ba229c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "scripts": { "prepare": "gulp", "test:types": "tsc --project types/tsconfig.json", - "format": "prettier --write 'src/**/*'" + "format": "prettier --write 'src/**/*' && eslint --fix" }, "prettier": { "trailingComma": "es5", diff --git a/src/js/easymde.js b/src/js/easymde.js index 9f83831..105096a 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -52,7 +52,7 @@ var shortcuts = { toggleHeadingBigger: 'Shift-Cmd-H', cleanBlock: 'Cmd-E', drawImage: 'Cmd-Alt-I', - toggleBlockquote: "Cmd-'", + toggleBlockquote: 'Cmd-\'', toggleOrderedList: 'Cmd-Alt-L', toggleUnorderedList: 'Cmd-L', toggleCodeBlock: 'Cmd-Alt-C', @@ -335,7 +335,7 @@ function toggleCodeBlock(editor) { function fencing_line(line) { /* return true, if this is a ``` or ~~~ line */ if (typeof line !== 'object') { - throw "fencing_line() takes a 'line' object (not a line number, or line text). Got: " + + throw 'fencing_line() takes a \'line\' object (not a line number, or line text). Got: ' + typeof line + ': ' + line;