diff --git a/.eslintrc.json b/.eslintrc.json index cead4ea11..3ef6764ae 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,6 +30,14 @@ "rules": { "@typescript-eslint/no-unnecessary-condition": "off", "import/no-relative-parent-imports": "error", + "functional/prefer-readonly-type": "off", + "functional/prefer-readonly-type-declaration": ["error", { + "aliases": { + "mustBeMutable": { + "requireOthersToBeReadonly": false + } + } + }], "node/no-unsupported-features/es-builtins": "off", "node/no-unsupported-features/es-syntax": "off", // enable once supported in all our supported node versions. diff --git a/tests/helpers/util.ts b/tests/helpers/util.ts index 8f42edcdb..3058d5e4a 100644 --- a/tests/helpers/util.ts +++ b/tests/helpers/util.ts @@ -83,9 +83,7 @@ export function createDummyRule( } export type RuleTesterTests = { - // eslint-disable-next-line functional/prefer-readonly-type valid?: Array; - // eslint-disable-next-line functional/prefer-readonly-type invalid?: Array; };