Skip to content
Snippets Groups Projects

Allow value-less dash-cased props

Closed username-removed-95990 requested to merge ifyoumakeit/buble:allow-kebab-cased into master

Currently you can't pass down dash-cased properties without a value.

See error case here in REPL.

// current
{ 'data-foo' }

// w/ update
{ 'data-foo': true }

Changes

  • Add true to output if contains dashed and non-value
  • Refactor if/else into named functions
  • data-attribute -> any dash-cased prop
  • Add test

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading