eslint.config.mjs (37 lines of code) (raw):
import guardian from "@guardian/eslint-config";
export default [
...guardian.configs.recommended,
...guardian.configs.jest,
{
/** TODO - Address these and remove the disabling of these rules */
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
/** The following rules were added when upgrading to @guardian/eslint-config */
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/prefer-promise-reject-errors": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/no-duplicate-type-constituents": "off",
"@typescript-eslint/consistent-type-imports": "off",
curly: "off",
"import/order": "off",
"no-prototype-builtins": "off",
"sort-imports": "off",
},
ignores: ["node_modules", "coverage", "examples"],
},
];