calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

chore: add a fixer to custom ESLint rule to place `ref` last

Open Elijbet opened this issue 1 year ago • 1 comments

Related Issue: #8080

Summary

Adds a fixer to:

  • Ensure the ref is placed to be the last prop automatically.
  • Remove any existing comment containing // eslint-disable-next-line above an existing ref.
  • Add the ignore prop-sorting rule for that line.
  • Update the explainer to be shorter and with a note about it being managed by the rule.
  • Update tests to cover the fixer.
  • Add good and bad test cases for the explainer adjustment to the rule.

Elijbet avatar Jan 30 '24 01:01 Elijbet

This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions.

github-actions[bot] avatar Feb 21 '24 01:02 github-actions[bot]