Commit ae142dc
committed
fix(lint): add argsIgnorePattern so PascalCase destructured params don't trip no-unused-vars
ExportMenu.jsx's `icon: TriggerIcon = Download` pattern was flagged
because TriggerIcon is only referenced inside JSX (<TriggerIcon ... />),
and the config has no eslint-plugin-react/jsx-uses-vars to mark JSX
usage. argsIgnorePattern mirrors the existing varsIgnorePattern so
PascalCase destructured function params follow the same convention.1 parent 0f56bf0 commit ae142dc
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments