diff --git a/.eslintrc.yml b/.eslintrc.yml index fac34ba..fd81605 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -192,7 +192,6 @@ rules: - never prefer-arrow-callback: error prefer-const: error - prefer-destructuring: error prefer-exponentiation-operator: error prefer-named-capture-group: error prefer-object-spread: error diff --git a/src/config/rulesets/ruleset.eslint.ts b/src/config/rulesets/ruleset.eslint.ts index 80af9ff..ffbc065 100644 --- a/src/config/rulesets/ruleset.eslint.ts +++ b/src/config/rulesets/ruleset.eslint.ts @@ -956,7 +956,7 @@ export const ruleset: Record = { fixable: true, }, 'prefer-destructuring': { - enabled: true, + enabled: false, // does not work well with `let` and variables in the outer context fixable: true, }, 'prefer-numeric-literals': { diff --git a/src/lib/context/settings.ts b/src/lib/context/settings.ts index 49521cc..e7348eb 100644 --- a/src/lib/context/settings.ts +++ b/src/lib/context/settings.ts @@ -69,7 +69,6 @@ export const getSettings = (projectDirectory: string): Settings => { if (process.env.DML_SEMI !== undefined) { semi = process.env.DML_SEMI === '1' } else if (typeof rcSettings.semi === 'boolean') { - // eslint-disable-next-line prefer-destructuring semi = rcSettings.semi } else { semi = false