Skip to content

Feature: Multiple case for filenames #100

@adevinwild

Description

@adevinwild

I would love to have the ability to change the way hooks are written using the CLI. Currently, hooks are written in camelCase, I would like to have the ability to choose how files are written (e.g kebab-case)

Maybe having some sort of new option in the rehooks.json could be nice :

{
  "directory": "./src/hooks",
  "forceOverwrite": false,
  "case": "kebab" // ℹ️ This will write the file name to kebab case (e.g. `use-debounce-value` instead of `useDebounceValue`)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions