chore: add ignoreRestSiblings to no-unused-vars ESLint rule (#4404)

* chore: add ignoreRestSiblings to eslint config

* fix(site): remove eslint warning in <Markdown />
This commit is contained in:
Joe Previte
2022-10-07 09:55:27 -07:00
committed by GitHub
parent adcf8838d2
commit 2b6586d542
2 changed files with 1 additions and 2 deletions

View File

@ -54,6 +54,7 @@ rules:
- error
- argsIgnorePattern: "^_"
varsIgnorePattern: "^_"
ignoreRestSiblings: true
"@typescript-eslint/no-use-before-define": "off"
"@typescript-eslint/object-curly-spacing": ["error", "always"]
"@typescript-eslint/triple-slash-reference": "off"

View File

@ -30,8 +30,6 @@ export const Markdown: FC<{ children: string }> = ({ children }) => {
</Link>
),
// Adding node so the ...props don't have it
// eslint-disable-next-line @typescript-eslint/no-unused-vars
code: ({ node, inline, className, children, ...props }) => {
const match = /language-(\w+)/.exec(className || "")
return !inline && match ? (