Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b6586d

Browse files
authored
chore: add ignoreRestSiblings to no-unused-vars ESLint rule (#4404)
* chore: add ignoreRestSiblings to eslint config* fix(site): remove eslint warning in <Markdown />
1 parentadcf883 commit2b6586d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎site/.eslintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ rules:
5454
-error
5555
-argsIgnorePattern:"^_"
5656
varsIgnorePattern:"^_"
57+
ignoreRestSiblings:true
5758
"@typescript-eslint/no-use-before-define":"off"
5859
"@typescript-eslint/object-curly-spacing":["error", "always"]
5960
"@typescript-eslint/triple-slash-reference":"off"

‎site/src/components/Markdown/Markdown.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export const Markdown: FC<{ children: string }> = ({ children }) => {
3030
</Link>
3131
),
3232

33-
// Adding node so the ...props don't have it
34-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3533
code:({ node, inline, className, children, ...props})=>{
3634
constmatch=/language-(\w+)/.exec(className||"")
3735
return!inline&&match ?(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp