Skip to content

Commit cb54906

Browse files
authored
fix: Migrate to Typescript (#2805)
BREAKING CHANGE: Migrate to Typescript
1 parent 929d235 commit cb54906

39 files changed

+13126
-15304
lines changed

.eslintrc.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"extends": "standard",
2+
"extends": ["standard", "plugin:@typescript-eslint/recommended"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"root": true,
36
"rules": {
47
"semi": ["error", "always"],
58
"indent": ["error", 2, {
@@ -15,9 +18,14 @@
1518
"no-control-regex": "off",
1619
"no-prototype-builtins": "off",
1720
"no-extra-semi": "error",
18-
1921
"prefer-const": "error",
20-
"no-var": "error"
22+
"no-var": "error",
23+
"@typescript-eslint/ban-ts-comment": "off",
24+
"@typescript-eslint/no-explicit-any": "off",
25+
"@typescript-eslint/no-non-null-assertion": "off",
26+
"@typescript-eslint/no-empty-function": "off",
27+
"@typescript-eslint/no-namespace": "off",
28+
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
2129
},
2230
"env": {
2331
"node": true

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ npm install -g marked
4747

4848
```sh
4949
npm install marked
50-
npm install @types/marked # For TypeScript projects
5150
```
5251

5352
## Usage

bin/marked.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)