Allow prop spreading

This commit is contained in:
Dustin Brett
2021-03-13 21:09:46 -08:00
parent 42ef3e767c
commit b1b754e111
3 changed files with 1 additions and 2 deletions

View File

@@ -52,6 +52,7 @@
],
"max-lines": ["error", 80],
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error"

View File

@@ -9,7 +9,6 @@ const App = ({ Component, pageProps }: AppProps): React.ReactElement => (
<SessionProvider>
<StyledApp>
<Metadata />
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<Component {...pageProps} />
</StyledApp>
</SessionProvider>

View File

@@ -11,7 +11,6 @@ const withStyledComponents = async (
try {
ctx.renderPage = () =>
originalRenderPage({
/* eslint-disable-next-line react/jsx-props-no-spreading */
enhanceApp: (App) => (props) => sheet.collectStyles(<App {...props} />)
});