Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move towards new ruleset

Manav Rathi0b4d47933719
diff --git a/web/apps/accounts/.eslintrc.js b/web/apps/accounts/.eslintrc.js
index 2fb32751a9..f510aaba78 100644
--- a/web/apps/accounts/.eslintrc.js
+++ b/web/apps/accounts/.eslintrc.js
@@ -1,3 +1,4 @@
+/*
module.exports = {
// When root is set to true, ESLint will stop looking for configuration files in parent directories.
// This is required here to ensure desktop picks the right eslint config, where this app is
@@ -11,3 +12,23 @@ module.exports = {
},
ignorePatterns: [".eslintrc.js", "out", "next.config.js", "next-env.d.ts"],
};
+*/
+module.exports = {
+ extends: ["@/build-config/eslintrc-next"],
+ ignorePatterns: ["next.config.base.js"],
+ /* TODO: Temporary overrides */
+ rules: {
+ "react/react-in-jsx-scope": "off",
+ "react/prop-types": "off",
+ "react-hooks/exhaustive-deps": "off",
+ "@typescript-eslint/no-unsafe-assignment": "off",
+ "@typescript-eslint/no-misused-promises": "off",
+ "@typescript-eslint/no-floating-promises": "off",
+ "@typescript-eslint/no-unsafe-member-access": "off",
+ "@typescript-eslint/no-unsafe-assignment": "off",
+ "@typescript-eslint/no-explicit-any": "off",
+ "@typescript-eslint/no-unsafe-argument": "off",
+ "@typescript-eslint/restrict-template-expressions": "off",
+ "react-refresh/only-export-components": "off",
+ },
+};
diff --git a/web/apps/accounts/package.json b/web/apps/accounts/package.json
index 3136b0e809..8629057fce 100644
--- a/web/apps/accounts/package.json
+++ b/web/apps/accounts/package.json
@@ -7,5 +7,8 @@
"@ente/accounts": "*",
"@ente/eslint-config": "*",
"@ente/shared": "*"
+ },
+ "devDependencies": {
+ "@/build-config": "*"
}
}