Enable the prefer-destructuring eslint rule (#1858)

## Description:

Enable the `prefer-destructuring` eslint rule.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
This commit is contained in:
Scott Anderson
2025-08-18 20:45:21 -04:00
committed by GitHub
parent 42394d4476
commit 7bb319fcad
29 changed files with 43 additions and 40 deletions
+4
View File
@@ -118,6 +118,10 @@ export default [
"object-shorthand": ["error", "always"],
"no-undef": "error",
"no-unused-vars": "off", // @typescript-eslint/no-unused-vars
"prefer-destructuring": ["error", {
array: false,
object: true,
}],
"quote-props": ["error", "consistent-as-needed"],
"sort-imports": "error",
"space-before-blocks": ["error", "always"],