Compare commits
1 Commits
main
...
5d0a12e8ea
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d0a12e8ea |
@@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
|
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
|
||||||
|
|||||||
@@ -1,37 +1,39 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
import { FlatCompat } from '@eslint/eslintrc';
|
||||||
import nextVitals from 'eslint-config-next/core-web-vitals';
|
|
||||||
import nextTs from 'eslint-config-next/typescript';
|
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
const eslintConfig = defineConfig([
|
const compat = new FlatCompat({
|
||||||
// Next.js core-web-vitals and TypeScript configs
|
baseDirectory: import.meta.dirname,
|
||||||
...nextVitals,
|
});
|
||||||
...nextTs,
|
|
||||||
// Add strict TypeScript rules on top
|
export default [
|
||||||
...tseslint.configs.strictTypeChecked,
|
// Global ignores
|
||||||
...tseslint.configs.stylisticTypeChecked,
|
|
||||||
// Configure TypeScript parser options
|
|
||||||
{
|
{
|
||||||
files: ['**/*.{ts,tsx}'],
|
ignores: [
|
||||||
languageOptions: {
|
'node_modules/**',
|
||||||
parserOptions: {
|
|
||||||
projectService: true,
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// Override default ignores of eslint-config-next
|
|
||||||
globalIgnores([
|
|
||||||
// Default ignores of eslint-config-next:
|
|
||||||
'.next/**',
|
'.next/**',
|
||||||
'out/**',
|
'out/**',
|
||||||
'build/**',
|
'build/**',
|
||||||
'next-env.d.ts',
|
'next-env.d.ts',
|
||||||
// Additional ignores:
|
|
||||||
'*.mjs',
|
'*.mjs',
|
||||||
'tailwind.config.ts',
|
'tailwind.config.ts',
|
||||||
]),
|
],
|
||||||
]);
|
},
|
||||||
|
|
||||||
export default eslintConfig;
|
// 1. Next.js core rules (includes react, react-hooks, and next)
|
||||||
|
...compat.extends('next/core-web-vitals', 'prettier'),
|
||||||
|
|
||||||
|
// 2. Your strict, type-aware TypeScript rules
|
||||||
|
...tseslint.configs.strictTypeChecked,
|
||||||
|
...tseslint.configs.stylisticTypeChecked,
|
||||||
|
|
||||||
|
// 3. Configuration for type-aware rules
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: {
|
||||||
|
project: true,
|
||||||
|
tsconfigRootDir: import.meta.dirname,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|||||||
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
import "./.next/types/routes.d.ts";
|
/// <reference path="./.next/types/routes.d.ts" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
27
package.json
27
package.json
@@ -11,32 +11,33 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.554.0",
|
"lucide-react": "^0.552.0",
|
||||||
"next": "16.0.3",
|
"next": "16.0.1",
|
||||||
"react": "19.2.0",
|
"react": "19.2.0",
|
||||||
"react-dom": "19.2.0",
|
"react-dom": "19.2.0",
|
||||||
"tailwind-merge": "^3.3.1"
|
"tailwind-merge": "^3.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "4.1.17",
|
"@eslint/eslintrc": "3.3.1",
|
||||||
"@types/node": "24.10.1",
|
"@tailwindcss/postcss": "4.1.16",
|
||||||
"@types/react": "19.2.6",
|
"@types/node": "24.9.2",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react": "19.2.2",
|
||||||
"eslint": "9.39.1",
|
"@types/react-dom": "19.2.2",
|
||||||
"eslint-config-next": "16.0.3",
|
"eslint": "9.38.0",
|
||||||
|
"eslint-config-next": "16.0.1",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"prettier-plugin-tailwindcss": "0.7.1",
|
"prettier-plugin-tailwindcss": "0.7.1",
|
||||||
"tailwindcss": "4.1.17",
|
"tailwindcss": "4.1.16",
|
||||||
"tw-animate-css": "1.4.0",
|
"tw-animate-css": "1.4.0",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-eslint": "8.47.0"
|
"typescript-eslint": "8.46.3"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.23.0",
|
"packageManager": "pnpm@10.20.0",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "19.2.6",
|
"@types/react": "19.2.2",
|
||||||
"@types/react-dom": "19.2.3"
|
"@types/react-dom": "19.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
609
pnpm-lock.yaml
generated
609
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,5 @@
|
|||||||
const config = {
|
const config = {
|
||||||
plugins: {
|
plugins: ["@tailwindcss/postcss"],
|
||||||
'@tailwindcss/postcss': {},
|
|
||||||
cssnano: {},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": false,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
@@ -10,20 +10,18 @@
|
|||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
},
|
},
|
||||||
"target": "ES2022",
|
"target": "ES2022"
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"verbatimModuleSyntax": true,
|
|
||||||
"noUncheckedIndexedAccess": false,
|
|
||||||
"exactOptionalPropertyTypes": false,
|
|
||||||
"noImplicitReturns": false,
|
|
||||||
"plugins": [{ "name": "next" }]
|
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", ".next"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user