From ed20d02ea5d051434f92c39d573552575380ff3b Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 8 Nov 2024 10:51:43 +0700 Subject: [PATCH] Enforce prefer-object-spread Because "it may perform better", and because it is the most used pattern in our codebase See https://eslint.org/docs/latest/rules/prefer-object-spread --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 700c2a11..7f6cbbf6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,7 @@ "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { + "prefer-object-spread": "error", "@angular-eslint/component-max-inline-declarations": "off", // We use that mostly for testing, so it's fine "@angular-eslint/no-forward-ref": "off", // We sometimes need it "@angular-eslint/prefer-on-push-component-change-detection": "off",