Skip to content

Commit 4b2e171

Browse files
fix: disable no-new rule for markdown (#73)
1 parent 4fbe4b0 commit 4b2e171

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configs/markdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ async function getMarkdownRecommendedConfig() {
5454

5555
"no-console": "off",
5656

57+
"no-new": "off",
58+
5759
"unicorn/no-unused-properties": "off",
5860

5961
"n/no-unpublished-require": "off",

validation/file.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ function run() {
2626

2727
run();
2828
```
29+
30+
```js
31+
new URL("./test");
32+
```

0 commit comments

Comments
 (0)