mirror of
https://github.com/arthur-pbty/portfolio.git
synced 2026-08-01 20:29:43 +02:00
- Reduced the number of photos displayed from 68 to 33 in the photo gallery. - Removed unused photo files (photos 34 to 68) from the public directory. - Updated Docker configuration for better environment management and container naming. - Upgraded Next.js and ESLint dependencies to their latest versions. - Added ESLint configuration file for improved code quality checks. - Introduced a .dockerignore file to exclude unnecessary files from the Docker context. - Added an example .env file for environment variable configuration. Co-authored-by: Copilot <copilot@github.com>
46 lines
920 B
JavaScript
46 lines
920 B
JavaScript
import js from "@eslint/js";
|
|
import next from "eslint-config-next";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
const config = [
|
|
// Base JavaScript recommended rules
|
|
js.configs.recommended,
|
|
|
|
// TypeScript recommended rules
|
|
...tseslint.configs.recommended,
|
|
|
|
// Next.js recommended rules
|
|
...next,
|
|
|
|
{
|
|
rules: {
|
|
// ===== Code quality =====
|
|
"no-console": "warn",
|
|
"prefer-const": "error",
|
|
eqeqeq: ["error", "always"],
|
|
curly: ["error", "all"],
|
|
|
|
// ===== TypeScript =====
|
|
"@typescript-eslint/no-unused-vars": ["warn"],
|
|
|
|
// ===== React / Next =====
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"react/react-in-jsx-scope": "off",
|
|
|
|
// ===== Style =====
|
|
semi: ["error", "always"],
|
|
quotes: ["error", "double"],
|
|
},
|
|
},
|
|
|
|
{
|
|
ignores: [
|
|
"node_modules",
|
|
".next",
|
|
"dist",
|
|
"out",
|
|
],
|
|
},
|
|
];
|
|
|
|
export default config; |