Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tweak ignores

Manav Rathi8f43f27fcfdb
diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjs
index 5ca76ecd4d..fe6f0ab98b 100644
--- a/web/apps/photos/eslint.config.mjs
+++ b/web/apps/photos/eslint.config.mjs
@@ -3,7 +3,7 @@ import config from "@/build-config/eslintrc-next-app.mjs";
export default [
...config,
{
- ignores: ["thirdparty", "public"],
+ ignores: ["thirdparty"],
},
{
rules: {
diff --git a/web/packages/build-config/eslintrc-next-app.mjs b/web/packages/build-config/eslintrc-next-app.mjs
index 32e17fca5a..5ad5e91554 100644
--- a/web/packages/build-config/eslintrc-next-app.mjs
+++ b/web/packages/build-config/eslintrc-next-app.mjs
@@ -5,5 +5,14 @@ import config from "./eslintrc-react.mjs";
// A base config for Next.js apps.
export default [
...config,
- { ignores: ["out", ".next", "next.config.js", "next-env.d.ts"] },
+ {
+ ignores: [
+ "out",
+ ".next",
+ "public",
+ ".env*",
+ "next.config.js",
+ "next-env.d.ts",
+ ],
+ },
];
diff --git a/web/packages/build-config/eslintrc-react.mjs b/web/packages/build-config/eslintrc-react.mjs
index 3b02f53d1c..fd88b7caaf 100644
--- a/web/packages/build-config/eslintrc-react.mjs
+++ b/web/packages/build-config/eslintrc-react.mjs
@@ -27,6 +27,7 @@ export default [
},
},
{
+ files: ["**/*.{jsx,tsx}"],
plugins: {
"react-hooks": hooksPlugin,
"react-refresh": reactRefreshPlugin,