Files
NextEdu/eslint.config.mjs
SpecialX 5195a4bcf1 chore(config): update build tooling, CI/CD workflows, and project scripts
- Update ESLint, Prettier, Tailwind, TypeScript, Vitest, Playwright configs

- Update Dockerfile and CI/CD workflows (ci, dr-drill, security)

- Add/Update DB backup, restore, health-check, security-scan scripts

- Update project rules and .gitignore
2026-06-23 17:35:24 +08:00

53 lines
1.2 KiB
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
"react-hooks/incompatible-library": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
{
files: ["tests/**/*.ts"],
languageOptions: {
globals: {
describe: "readonly",
it: "readonly",
test: "readonly",
expect: "readonly",
beforeAll: "readonly",
afterAll: "readonly",
beforeEach: "readonly",
afterEach: "readonly",
vi: "readonly",
},
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
"docs/scripts/**",
"playwright-report/**",
"test-results/**",
// Debug scripts using CommonJS
"tests/webapp/debug_drizzle.js",
]),
]);
export default eslintConfig;