Skip to content

Commit aba8cf8

Browse files
authored
Merge pull request #8 from Active-Matrix/akshay-vs
chore: eslint config
2 parents a6d7d63 + 8689375 commit aba8cf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+8473
-458
lines changed

.lintstagedrc.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"apps/**/*.{js,ts,jsx,tsx}": ["eslint --fix"],
3-
"packages/ui/**/*.{js,ts,jsx,tsx}": ["eslint --fix"],
4-
"*.json": ["prettier --write"]
2+
"apps/**/*.{js,ts,jsx,tsx}": ["eslint --config eslint.config.js --fix"],
3+
"packages/**/*.{js,ts,jsx,tsx}": ["eslint --config eslint.config.js --fix"],
4+
"packages/ui/**/*.{js,ts,jsx,tsx}": [
5+
"eslint --config eslint.config.js --fix"
6+
],
7+
"*.json": ["prettier --write"]
58
}

.prettierrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"trailingComma": "es5",
3-
"tabWidth": 2,
42
"semi": true,
3+
"trailingComma": "es5",
54
"singleQuote": true,
6-
"printWidth": 80
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": true,
8+
"bracketSpacing": true,
9+
"arrowParens": "always",
10+
"endOfLine": "auto"
711
}

.vscode/settings.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
6-
]
2+
"eslint.workingDirectories": ["."]
73
}

apps/native/.expo-shared/assets.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/native/.gitignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/native/App.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

apps/native/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/native/app.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/native/assets/adaptive-icon.png

-17.1 KB
Binary file not shown.

apps/native/assets/favicon.png

-1.43 KB
Binary file not shown.

apps/native/assets/icon.png

-21.9 KB
Binary file not shown.

apps/native/assets/splash.png

-46.2 KB
Binary file not shown.

apps/native/babel.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/native/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/native/metro.config.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/native/package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/native/tsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/web/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/web/.gitignore

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
@@ -23,12 +28,14 @@
2328
npm-debug.log*
2429
yarn-debug.log*
2530
yarn-error.log*
31+
.pnpm-debug.log*
2632

27-
# local env files
28-
.env.local
29-
.env.development.local
30-
.env.test.local
31-
.env.production.local
33+
# env files (can opt-in for committing if needed)
34+
.env*
3235

3336
# vercel
3437
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

apps/web/README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
13
## Getting Started
24

35
First, run the development server:
46

57
```bash
8+
npm run dev
9+
# or
610
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
715
```
816

917
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1018

1119
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
1220

13-
To create [API routes](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) add an `api/` directory to the `app/` directory with a `route.ts` file. For individual endpoints, create a subfolder in the `api` directory, like `api/hello/route.ts` would map to [http://localhost:3000/api/hello](http://localhost:3000/api/hello).
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
1422

1523
## Learn More
1624

1725
To learn more about Next.js, take a look at the following resources:
1826

1927
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
20-
- [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2129

22-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
2331

2432
## Deploy on Vercel
2533

26-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
2735

28-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

apps/web/app/favicon.ico

25.3 KB
Binary file not shown.

apps/web/app/globals.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
:root {
6+
--background: #ffffff;
7+
--foreground: #171717;
8+
}
9+
10+
@media (prefers-color-scheme: dark) {
11+
:root {
12+
--background: #0a0a0a;
13+
--foreground: #ededed;
14+
}
15+
}
16+
17+
body {
18+
color: var(--foreground);
19+
background: var(--background);
20+
font-family: Arial, Helvetica, sans-serif;
21+
}

apps/web/app/layout.tsx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1+
import type { Metadata } from "next";
2+
import { Geist, Geist_Mono } from "next/font/google";
3+
import "./globals.css";
4+
5+
const geistSans = Geist({
6+
variable: "--font-geist-sans",
7+
subsets: ["latin"],
8+
});
9+
10+
const geistMono = Geist_Mono({
11+
variable: "--font-geist-mono",
12+
subsets: ["latin"],
13+
});
14+
15+
export const metadata: Metadata = {
16+
title: "Create Next App",
17+
description: "Generated by create next app",
18+
};
19+
120
export default function RootLayout({
221
children,
3-
}: {
22+
}: Readonly<{
423
children: React.ReactNode;
5-
}) {
24+
}>) {
625
return (
726
<html lang="en">
8-
<body>{children}</body>
27+
<body
28+
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
29+
>
30+
{children}
31+
</body>
932
</html>
1033
);
1134
}

0 commit comments

Comments
 (0)