Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 228 Bytes

prefer-destructuring-in-parameters.md

File metadata and controls

17 lines (11 loc) · 228 Bytes

Prefer destructuring in parameters over accessing properties.

This rule is fixable.

Fail

const foo = 'unicorn';

Pass

const foo = '🦄';