Skip to content

Commit 2b6586d

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 parent adcf883 commit 2b6586d

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
const match = /language-(\w+)/.exec(className || "")
3735
return !inline && match ? (

0 commit comments

Comments
 (0)