diff --git a/README.md b/README.md index 7465663..6e4e603 100644 --- a/README.md +++ b/README.md @@ -116,8 +116,6 @@ module.exports = { }; ``` -See [next.js example](./examples/next.js/.eslintrc.js) - See also [Configuring ESLint](https://eslint.org/docs/user-guide/configuring). ## Configs diff --git a/examples/next.js/.eslintrc.js b/examples/next.js/.eslintrc.js deleted file mode 100644 index 15b4de9..0000000 --- a/examples/next.js/.eslintrc.js +++ /dev/null @@ -1,55 +0,0 @@ -module.exports = { - $schema: 'https://json.schemastore.org/eslintrc', - extends: [ - 'next/core-web-vitals', - 'prettier', - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:tailwindcss/recommended', - 'plugin:prettier/recommended', - // extend recommended config - 'plugin:rtl-friendly/recommended', - ], - overrides: [ - { - files: ['*.ts', '*.tsx'], - parser: '@typescript-eslint/parser', - }, - ], - parser: '@typescript-eslint/parser', - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - }, - plugins: [ - 'react', - '@typescript-eslint', - 'tailwindcss', - 'prettier', - // add the plugin - 'rtl-friendly', - ], - rules: { - 'prettier/prettier': 'warn', - 'react/react-in-jsx-scope': 'off', - // 'rtl-friendly/no-physical-properties': 'warn', - }, - settings: { - tailwindcss: { - callees: ['cn'], - config: 'tailwind.config.ts', - }, - next: { - rootDir: ['./'], - }, - }, - ignorePatterns: [ - 'node_modules/', - '.next/', - 'out/', - 'public/', - 'dist/', - '.cache/', - ], -}; diff --git a/examples/next.js/.gitignore b/examples/next.js/.gitignore deleted file mode 100644 index 8f322f0..0000000 --- a/examples/next.js/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/examples/next.js/README.md b/examples/next.js/README.md deleted file mode 100644 index f4da3c4..0000000 --- a/examples/next.js/README.md +++ /dev/null @@ -1,34 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -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. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/examples/next.js/next.config.js b/examples/next.js/next.config.js deleted file mode 100644 index 767719f..0000000 --- a/examples/next.js/next.config.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {} - -module.exports = nextConfig diff --git a/examples/next.js/package.json b/examples/next.js/package.json deleted file mode 100644 index 759958a..0000000 --- a/examples/next.js/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "next.js", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "@types/node": "20.5.4", - "@types/react": "18.2.21", - "@types/react-dom": "18.2.7", - "autoprefixer": "10.4.15", - "eslint": "8.47.0", - "eslint-config-next": "14.0.0", - "next": "14.0.0", - "postcss": "8.4.28", - "react": "18.2.0", - "react-dom": "18.2.0", - "tailwindcss": "3.3.3", - "typescript": "5.1.6" - }, - "devDependencies": { - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "eslint-plugin-rtl-friendly": "^0.1.0", - "eslint-plugin-tailwindcss": "^3.13.0", - "prettier": "^3.0.2" - } -} diff --git a/examples/next.js/postcss.config.js b/examples/next.js/postcss.config.js deleted file mode 100644 index 33ad091..0000000 --- a/examples/next.js/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/examples/next.js/public/next.svg b/examples/next.js/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/examples/next.js/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/next.js/public/vercel.svg b/examples/next.js/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/examples/next.js/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/next.js/src/app/favicon.ico b/examples/next.js/src/app/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/examples/next.js/src/app/favicon.ico and /dev/null differ diff --git a/examples/next.js/src/app/globals.css b/examples/next.js/src/app/globals.css deleted file mode 100644 index fd81e88..0000000 --- a/examples/next.js/src/app/globals.css +++ /dev/null @@ -1,27 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} diff --git a/examples/next.js/src/app/layout.tsx b/examples/next.js/src/app/layout.tsx deleted file mode 100644 index 092954c..0000000 --- a/examples/next.js/src/app/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import './globals.css'; -import type { Metadata } from 'next'; -import { Inter } from 'next/font/google'; - -const inter = Inter({ subsets: ['latin'] }); - -export const metadata: Metadata = { - title: 'Create Next App', - description: 'Generated by create next app', -}; - -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( - - {children} - - ); -} diff --git a/examples/next.js/src/app/page.tsx b/examples/next.js/src/app/page.tsx deleted file mode 100644 index 4c5dcb6..0000000 --- a/examples/next.js/src/app/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -export default function Home() { - return ( -
-

Fancy Heading

-
- ); -} diff --git a/examples/next.js/tailwind.config.ts b/examples/next.js/tailwind.config.ts deleted file mode 100644 index 1af3b8f..0000000 --- a/examples/next.js/tailwind.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Config } from 'tailwindcss' - -const config: Config = { - content: [ - './src/pages/**/*.{js,ts,jsx,tsx,mdx}', - './src/components/**/*.{js,ts,jsx,tsx,mdx}', - './src/app/**/*.{js,ts,jsx,tsx,mdx}', - ], - theme: { - extend: { - backgroundImage: { - 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', - 'gradient-conic': - 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', - }, - }, - }, - plugins: [], -} -export default config diff --git a/examples/next.js/tsconfig.json b/examples/next.js/tsconfig.json deleted file mode 100644 index e59724b..0000000 --- a/examples/next.js/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -}