Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions apps/www/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { dirname } from "path"
import { fileURLToPath } from "url"
import { FlatCompat } from "@eslint/eslintrc"
import { defineConfig, globalIgnores } from "eslint/config"
import nextVitals from "eslint-config-next/core-web-vitals"
import nextTs from "eslint-config-next/typescript"

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

const compat = new FlatCompat({
baseDirectory: __dirname,
})

const eslintConfig = [
...compat.config({
extends: ["next/core-web-vitals", "next/typescript"],
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
"@next/next/no-duplicate-head": "off",
},
}),
]
},
globalIgnores([
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
])

export default eslintConfig
6 changes: 3 additions & 3 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dev": "next dev --turbopack --port 4000",
"build": "next build",
"start": "next start --port 4000",
"lint": "next lint",
"lint:fix": "next lint --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
Expand Down Expand Up @@ -120,7 +120,7 @@
"@types/react-dom": "19.2.3",
"@typescript-eslint/parser": "^8.31.0",
"eslint": "^9",
"eslint-config-next": "15.3.1",
"eslint-config-next": "16.1.3",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^4.1.11",
Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,9 @@
"@commitlint/config-conventional": "^17.6.3",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@manypkg/cli": "^0.20.0",
"@typescript-eslint/parser": "^5.59.7",
"autoprefixer": "^10.4.14",
"concurrently": "^8.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.41.0",
"eslint-config-next": "13.3.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "^1.9.9",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-tailwindcss": "3.13.1",
"motion": "^12.12.1",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
Expand Down
Loading
Loading