mirror of
https://github.com/ente-io/ente.git
synced 2025-08-06 22:52:45 +00:00
45 lines
2.1 KiB
JavaScript
45 lines
2.1 KiB
JavaScript
import config from "@/build-config/eslintrc-react.mjs";
|
|
|
|
export default [
|
|
...config,
|
|
{
|
|
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",
|
|
"@typescript-eslint/no-unsafe-call": "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",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"@typescript-eslint/require-await": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/no-misused-promises": "off",
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"react-hooks/rules-of-hooks": "off",
|
|
"react-refresh/only-export-components": "off",
|
|
/** TODO: New during eslint 8=>9 migration */
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
},
|
|
},
|
|
];
|