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": {
|
"scripts": {
|
||||||
"prepare": "gulp",
|
"prepare": "gulp",
|
||||||
"test:types": "tsc --project types/tsconfig.json",
|
"test:types": "tsc --project types/tsconfig.json",
|
||||||
"format": "prettier --write 'src/**/*'"
|
"format": "prettier --write 'src/**/*' && eslint --fix"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
|
@ -52,7 +52,7 @@ var shortcuts = {
|
|||||||
toggleHeadingBigger: 'Shift-Cmd-H',
|
toggleHeadingBigger: 'Shift-Cmd-H',
|
||||||
cleanBlock: 'Cmd-E',
|
cleanBlock: 'Cmd-E',
|
||||||
drawImage: 'Cmd-Alt-I',
|
drawImage: 'Cmd-Alt-I',
|
||||||
toggleBlockquote: "Cmd-'",
|
toggleBlockquote: 'Cmd-\'',
|
||||||
toggleOrderedList: 'Cmd-Alt-L',
|
toggleOrderedList: 'Cmd-Alt-L',
|
||||||
toggleUnorderedList: 'Cmd-L',
|
toggleUnorderedList: 'Cmd-L',
|
||||||
toggleCodeBlock: 'Cmd-Alt-C',
|
toggleCodeBlock: 'Cmd-Alt-C',
|
||||||
@ -335,7 +335,7 @@ function toggleCodeBlock(editor) {
|
|||||||
function fencing_line(line) {
|
function fencing_line(line) {
|
||||||
/* return true, if this is a ``` or ~~~ line */
|
/* return true, if this is a ``` or ~~~ line */
|
||||||
if (typeof line !== 'object') {
|
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 +
|
typeof line +
|
||||||
': ' +
|
': ' +
|
||||||
line;
|
line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user