Add chakra and prettier

pull/1331/head
Kamran Ahmed 3 years ago
parent 5cf17a3e0f
commit 9c81d818ed
  1. 2
      .eslintrc
  2. 1
      .gitignore
  3. 4
      .prettierrc
  4. 1
      next-env.d.ts
  5. 12005
      package-lock.json
  6. 12
      package.json
  7. 15
      pages/_app.tsx

@ -1,3 +1,3 @@
{
"extends": ["next", "next/core-web-vitals"]
"extends": ["next", "next/core-web-vitals", "prettier"]
}

1
.gitignore vendored

@ -16,6 +16,7 @@
/build
# misc
.idea
.DS_Store
*.pem

@ -0,0 +1,4 @@
{
"semi": true,
"singleQuote": true
}

1
next-env.d.ts vendored

@ -1,2 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

12005
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -9,6 +9,10 @@
"lint": "next lint"
},
"dependencies": {
"@chakra-ui/react": "^1.6.5",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"framer-motion": "^4.1.17",
"next": "11.0.1",
"react": "17.0.2",
"react-dom": "17.0.2"
@ -17,6 +21,14 @@
"@types/react": "17.0.15",
"eslint": "7.32.0",
"eslint-config-next": "11.0.1",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.1",
"pretty-quick": "^3.1.1",
"typescript": "4.3.5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run lint"
}
}
}

@ -1,7 +1,14 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import type { AppProps } from 'next/app';
import { ChakraProvider } from '@chakra-ui/react';
import '../styles/globals.css';
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return (
<ChakraProvider>
<Component {...pageProps} />
</ChakraProvider>
);
}
export default MyApp
export default MyApp;

Loading…
Cancel
Save