From bea1d4934962d4bbfcedae6d6ae064c206a5b65a Mon Sep 17 00:00:00 2001 From: Aayush Kapoor Date: Mon, 15 Mar 2021 10:40:47 +0530 Subject: [PATCH] Run prettier --- .prettierignore | 3 +++ README.md | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..126bc6c --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +.next +es6 +lib diff --git a/README.md b/README.md index 7dd2964..78c4f03 100644 --- a/README.md +++ b/README.md @@ -100,11 +100,7 @@ $ npm install next-dark-mode import withDarkMode from 'next-dark-mode' function MyApp({ Component, darkMode, pageProps }) { - const { - autoModeActive, - autoModeSupported, - darkModeActive, - } = darkMode + const { autoModeActive, autoModeSupported, darkModeActive } = darkMode return ( @@ -116,7 +112,6 @@ $ npm install next-dark-mode export default withDarkMode(MyApp) ``` - ## Configuration The `withDarkMode` function accepts a `config` object as its second argument. Every key is optional with default values mentioned: