This commit is contained in:
No files matched your search
+10
-14
@@ -1,22 +1,18 @@
|
|||||||
|
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
||||||
|
import nextTypescript from "eslint-config-next/typescript";
|
||||||
import { dirname } from 'path';
|
import { dirname } from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
import { FlatCompat } from '@eslint/eslintrc';
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = dirname(__filename);
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
const compat = new FlatCompat({
|
const eslintConfig = [...nextCoreWebVitals, ...nextTypescript, ...compat.config({
|
||||||
baseDirectory: __dirname,
|
rules: {
|
||||||
});
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
|
'react/no-unescaped-entities': 'off',
|
||||||
const eslintConfig = [
|
}
|
||||||
...compat.config({
|
}), {
|
||||||
extends: ['next/core-web-vitals', 'next/typescript'],
|
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"]
|
||||||
rules: {
|
}];
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
|
||||||
'react/no-unescaped-entities': 'off',
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
];
|
|
||||||
|
|
||||||
export default eslintConfig;
|
export default eslintConfig;
|
||||||
+20
-15
@@ -6,24 +6,29 @@
|
|||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "15.1.2",
|
"next": "16.0.7",
|
||||||
"react": "^19.0.0",
|
"react": "19.2.1",
|
||||||
"react-dom": "^19.0.0"
|
"react-dom": "19.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"@tailwindcss/typography": "^0.5.15",
|
"@types/node": "^20.19.25",
|
||||||
"@types/node": "^20",
|
"@types/react": "19.2.7",
|
||||||
"@types/react": "^19",
|
"@types/react-dom": "19.2.3",
|
||||||
"@types/react-dom": "^19",
|
"eslint": "^9.39.1",
|
||||||
"eslint": "^9",
|
"eslint-config-next": "16.0.7",
|
||||||
"eslint-config-next": "15.1.2",
|
"postcss": "^8.5.6",
|
||||||
"postcss": "^8",
|
"swr": "^2.3.7",
|
||||||
"swr": "^2.2.5",
|
"tailwindcss": "^3.4.18",
|
||||||
"tailwindcss": "^3.4.1",
|
"typescript": "^5.9.3"
|
||||||
"typescript": "^5"
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"@types/react": "19.2.7",
|
||||||
|
"@types/react-dom": "19.2.3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+1503
-1002
File diff suppressed because it is too large
Load diff
Reference in New Issue
Block a user