diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 0000000..e83497f --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,13 @@ +module.exports = { + // this will check Typescript files + "**/*.(ts|tsx)": () => "npx tsc --noEmit", + + // This will lint and format TypeScript and //JavaScript files + "**/*.(ts|tsx|js)": filenames => [ + `npx eslint --fix ${filenames.join(" ")}`, + `npx prettier --write ${filenames.join(" ")}`, + ], + + // this will Format MarkDown and JSON + "**/*.(md|json)": filenames => `npx prettier --write ${filenames.join(" ")}`, +}; diff --git a/src/app/page.tsx b/src/app/page.tsx index 2acfd44..e47c513 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,113 +1,3 @@ -import Image from "next/image"; - export default function Home() { - return ( -
-
-

- Get started by editing  - src/app/page.tsx -

-
- - By{" "} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{" "} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{" "} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{" "} - - -> - -

-

- Explore starter templates for Next.js. -

-
- - -

- Deploy{" "} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
- ); + return <>; }