From cc2e17252645cf2930db9de0b7111d175fbf9a52 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 6 Oct 2022 21:02:43 +0000 Subject: [PATCH 1/2] chore: add ignoreRestSiblings to eslint config --- site/.eslintrc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/site/.eslintrc.yaml b/site/.eslintrc.yaml index 0fa85272992c6..0c9b81714526e 100644 --- a/site/.eslintrc.yaml +++ b/site/.eslintrc.yaml @@ -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" From 6573805f277af0385d88418cf89d47bcc39b0434 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 6 Oct 2022 21:03:09 +0000 Subject: [PATCH 2/2] fix(site): remove eslint warning in --- site/src/components/Markdown/Markdown.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/site/src/components/Markdown/Markdown.tsx b/site/src/components/Markdown/Markdown.tsx index e081c4820f01e..f068b72194048 100644 --- a/site/src/components/Markdown/Markdown.tsx +++ b/site/src/components/Markdown/Markdown.tsx @@ -30,8 +30,6 @@ export const Markdown: FC<{ children: string }> = ({ children }) => { ), - // 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 ? (