mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
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:
@ -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"
|
||||
|
@ -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 ? (
|
||||
|
Reference in New Issue
Block a user