mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
apply eslint aswell
This commit is contained in:
parent
14c21da8e7
commit
f861b998fe
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user