ente/web/packages/shared/eslint.config.mjs
Manav Rathi 4e5c99aafe
Prune
2024-11-20 10:00:52 +05:30

30 lines
1.2 KiB
JavaScript

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/prefer-promise-reject-errors": "off",
"react-hooks/exhaustive-deps": "off",
},
},
];