meta: add prefer-destructuring eslint rule

This commit is contained in:
Xymorot 2020-07-29 16:44:19 +02:00
parent b4bf619b5d
commit 8b9936a4f8
2 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,13 @@
"no-useless-rename": "error",
"prefer-promise-reject-errors": "error",
"eqeqeq": "error",
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
}
],
"import/no-extraneous-dependencies": [
"error",

View File

@ -21,7 +21,7 @@ export class Store implements IStore {
public async save(key: StoreKey, data: unknown): Promise<void> {
const c = await getConnection(Database.STORE);
const manager = c.manager;
const { manager } = c;
const storeValue = new StoreValue();
storeValue.key = key;
storeValue.value = data;