meta: add prefer-destructuring eslint rule
This commit is contained in:
parent
b4bf619b5d
commit
8b9936a4f8
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue