Skip to content

Commit

Permalink
Converted code to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed May 15, 2023
1 parent d4a1df8 commit 72d4bdb
Show file tree
Hide file tree
Showing 37 changed files with 12,702 additions and 14,182 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.json
@@ -1,5 +1,8 @@
{
"extends": "standard",
"extends": ["standard", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"rules": {
"semi": ["error", "always"],
"indent": ["error", 2, {
Expand All @@ -15,9 +18,14 @@
"no-control-regex": "off",
"no-prototype-builtins": "off",
"no-extra-semi": "error",

"prefer-const": "error",
"no-var": "error"
"no-var": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
},
"env": {
"node": true
Expand Down
Empty file modified bin/marked.js 100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions docs/demo/demo.js
Expand Up @@ -445,9 +445,9 @@ function checkForChanges() {
delayTime = 100;
messageWorker({
task: 'parse',
version: version,
markdown: markdown,
options: options
version,
markdown,
options
});
} else {
var startTime = new Date();
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/preview.html
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>marked.js preview</title>
<title>marked.ts preview</title>
<link rel="stylesheet" href="./demo.css" />
<base target="_parent">
</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/worker.js
Expand Up @@ -80,7 +80,7 @@ function parse(e) {
id: e.data.id,
task: e.data.task,
lexed: lexedList,
parsed: parsed,
parsed,
time: endTime - startTime
});
break;
Expand Down

0 comments on commit 72d4bdb

Please sign in to comment.