Skip to content

Commit

Permalink
Enforce prefer-object-spread
Browse files Browse the repository at this point in the history
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
  • Loading branch information
PowerKiKi committed Nov 8, 2024
1 parent 1a9cbf2 commit ed20d02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ed20d02

Please sign in to comment.