From b1dee94173f02cb17b240bb29759e4596a11e433 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 10 Mar 2026 10:30:49 -0700 Subject: [PATCH] fix(repo): restore web lint and ignore generated artifacts --- .gitignore | 7 +++++++ web/eslint.config.mjs | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 web/eslint.config.mjs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bf180d --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules/ +**/node_modules/ +*.tsbuildinfo +**/*.tsbuildinfo +.next/ +dist/ +coverage/ diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs new file mode 100644 index 0000000..c960292 --- /dev/null +++ b/web/eslint.config.mjs @@ -0,0 +1,24 @@ +import { defineConfig, globalIgnores } from "eslint/config"; +import nextVitals from "eslint-config-next/core-web-vitals"; +import nextTs from "eslint-config-next/typescript"; + +export default defineConfig([ + ...nextVitals, + ...nextTs, + { + rules: { + "@typescript-eslint/no-unused-vars": [ + "warn", + { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }, + ], + }, + }, + globalIgnores([ + ".next/**", + "out/**", + "build/**", + "coverage/**", + "next-env.d.ts", + "tsconfig.tsbuildinfo", + ]), +]);