From edf236a2c97d347b60c85ded414991d88476e71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Mon, 11 Mar 2024 15:05:14 +0100 Subject: [PATCH] Disable destruct on assignment (#11) --- COPYRIGHT | 2 +- LICENSE | 2 +- README.md | 2 +- index.js | 11 ++++++++++- package.json | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/COPYRIGHT b/COPYRIGHT index 6933d21..4e03477 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,4 +1,4 @@ -Copyright (C) 1999-2023 Ibexa AS (formerly eZ Systems AS). All rights reserved. +Copyright (C) 1999-2024 Ibexa AS (formerly eZ Systems AS). All rights reserved. This source code is available separately under the following licenses: diff --git a/LICENSE b/LICENSE index 45d0ea7..eb76224 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 1999-2023 Ibexa AS (formerly eZ Systems AS). All rights reserved. +Copyright (C) 1999-2024 Ibexa AS (formerly eZ Systems AS). All rights reserved. This source code is available separately under the following licenses: diff --git a/README.md b/README.md index 296c1b8..50e8f2d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Change its permissions to executable. Run it from main project directory. It will install modules in all bundles. ## COPYRIGHT -Copyright (C) 1999-2023 Ibexa AS (formerly eZ Systems AS). All rights reserved. +Copyright (C) 1999-2024 Ibexa AS (formerly eZ Systems AS). All rights reserved. ## LICENSE This source code is available separately under the following licenses: diff --git a/index.js b/index.js index f4547be..ab94326 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,16 @@ module.exports = { "no-var": "error", "object-curly-spacing": ["error", "always"], "prefer-const": "error", - "prefer-destructuring": ["error", { array: false, object: true }, { enforceForRenamedProperties: false }], + "prefer-destructuring": ["error", { + "VariableDeclarator": { + "array": false, + "object": true + }, + "AssignmentExpression": { + "array": false, + "object": false + } + }, { enforceForRenamedProperties: false }], "prefer-object-spread": "error", "prefer-template": "error", "quotes": ["error", "single", { allowTemplateLiterals: true }], diff --git a/package.json b/package.json index a0beb04..4f87b08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-ibexa", - "version": "1.1.0", + "version": "1.1.1", "repository": "git@github.com:ibexa/eslint-config-ibexa.git", "private": true, "dependencies": {