Skip to content

armgit / ente

Public Imported from GitHub
0

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

Swap

Manav Rathia3586fed7e3b
diff --git a/web/packages/shared/.eslintrc.js b/web/packages/shared/.eslintrc.js
deleted file mode 100644
index 227fc276cb..0000000000
--- a/web/packages/shared/.eslintrc.js
+++ /dev/null
@@ -1,28 +0,0 @@
-module.exports = {
- 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",
- },
-};
diff --git a/web/packages/shared/eslint.config.mjs b/web/packages/shared/eslint.config.mjs
new file mode 100644
index 0000000000..61c51485fa
--- /dev/null
+++ b/web/packages/shared/eslint.config.mjs
@@ -0,0 +1,34 @@
+import config from "@/build-config/eslintrc-react.mjs";
+
+export default [
+ ...config,
+ {
+ ignores: ["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",
+ },
+ },
+];