Skip to content

armgit / ente

Public Imported from GitHub
0

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

Swap to newer

Manav Rathi3a3f9fbd942b
diff --git a/web/packages/shared/.eslintrc.js b/web/packages/shared/.eslintrc.js
index 1fc7db29af..227fc276cb 100644
--- a/web/packages/shared/.eslintrc.js
+++ b/web/packages/shared/.eslintrc.js
@@ -1,13 +1,28 @@
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
- // packaged as a submodule.
- root: true,
- extends: ["@ente/eslint-config"],
- parser: "@typescript-eslint/parser",
- parserOptions: {
- tsconfigRootDir: __dirname,
- project: "./tsconfig.json",
+ extends: ["@/build-config/eslintrc-react"],
+ ignorePatterns: ["next/utils/headers.js"],
+ rules: {
+ /* TODO:
+ * "This rule requires the `strictNullChecks` compiler option to be
+ * turned on to function correctly"
+ */
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
+ "@typescript-eslint/no-unnecessary-condition": "off",
+ "@typescript-eslint/no-unsafe-assignment": "off",
+ "@typescript-eslint/no-explicit-any": "off",
+ "@typescript-eslint/no-unsafe-return": "off",
+ "@typescript-eslint/no-unsafe-member-access": "off",
+ "@typescript-eslint/no-unsafe-argument": "off",
+ /** TODO: Disabled as we migrate, try to prune these again */
+ "@typescript-eslint/no-floating-promises": "off",
+ "@typescript-eslint/no-unsafe-enum-comparison": "off",
+ "@typescript-eslint/no-unnecessary-type-assertion": "off",
+ "@typescript-eslint/array-type": "off",
+ "@typescript-eslint/no-empty-function": "off",
+ "@typescript-eslint/no-unnecessary-template-expression": "off",
+ "@typescript-eslint/consistent-indexed-object-style": "off",
+ "@typescript-eslint/prefer-promise-reject-errors": "off",
+ "@typescript-eslint/no-useless-constructor": "off",
+ "react-hooks/exhaustive-deps": "off",
},
- ignorePatterns: [".eslintrc.js", "next/utils/headers.js"],
};
diff --git a/web/packages/shared/package.json b/web/packages/shared/package.json
index 6e268322a5..0d8a08b061 100644
--- a/web/packages/shared/package.json
+++ b/web/packages/shared/package.json
@@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@/base": "*",
- "@ente/eslint-config": "*",
+ "@/build-config": "*",
"axios": "^1.6.7"
}
}