Skip to content

Commit

Permalink
turn off prefer-destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Katkov committed Jan 27, 2024
1 parent 68a01c6 commit 6b48c9c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/config/rulesets/ruleset.eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ export const ruleset: Record<string, Rule> = {
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': {
Expand Down
1 change: 0 additions & 1 deletion src/lib/context/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b48c9c

Please sign in to comment.