Skip to content

Commit

Permalink
chore: disable lintCodeBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Aug 12, 2024
1 parent 96a7949 commit 907c83c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-drinks-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/eslint-config-hyperse": patch
---

disable `lintCodeBlocks`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dependencies": {
"@eslint/js": "^9.9.0",
"@next/eslint-plugin-next": "rc",
"@vitest/eslint-plugin": "^1.0.0",
"@vitest/eslint-plugin": "^1.0.1",
"app-root-path": "^3.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
Expand Down
7 changes: 0 additions & 7 deletions src/rules/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@ import pluginMdx from 'eslint-plugin-mdx';
export const mdx = defineFlatConfig([
{
...(pluginMdx.flat as any),
// optional, if you want to lint code blocks at the same
processor: pluginMdx.createRemarkProcessor({
lintCodeBlocks: true,
// optional, if you want to disable language mapper, set it to `false`
// if you want to override the default language mapper inside, you can provide your own
languageMapper: {},
}),
},
]);
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ __metadata:
"@types/eslint__js": "npm:^8.42.3"
"@types/node": "npm:22.2.0"
"@types/react": "npm:^18.3.3"
"@vitest/eslint-plugin": "npm:^1.0.0"
"@vitest/eslint-plugin": "npm:^1.0.1"
app-root-path: "npm:^3.1.0"
commitizen: "npm:4.3.0"
cz-conventional-changelog: "npm:3.3.0"
Expand Down Expand Up @@ -1751,11 +1751,11 @@ __metadata:
languageName: node
linkType: hard

"@vitest/eslint-plugin@npm:^1.0.0":
version: 1.0.0
resolution: "@vitest/eslint-plugin@npm:1.0.0"
"@vitest/eslint-plugin@npm:^1.0.1":
version: 1.0.1
resolution: "@vitest/eslint-plugin@npm:1.0.1"
peerDependencies:
"@typescript-eslint/utils": ">= 7.8 || 8.0.0"
"@typescript-eslint/utils": ">= 8.0"
eslint: ">= 8.57.0"
typescript: ">= 5.0.0"
vitest: "*"
Expand All @@ -1766,7 +1766,7 @@ __metadata:
optional: true
vitest:
optional: true
checksum: 10/db4bda59243329d27f880b53f094cd3a455f54770ccd7dc751237f12cca21114499d9a46871a8abfa59c6ea4e3a22014e894274b49e21f30beb912225cae1849
checksum: 10/81fccf1dcf772f12d404b95baab8c418e4f9c19c13b3e9a8f74b1a193a28e275b01dbaf3dda40c3f4722112c2623e896eb0f93a3ea47bd12e34b4a5aae720635
languageName: node
linkType: hard

Expand Down

0 comments on commit 907c83c

Please sign in to comment.