Skip to content

[Feature request] Allow enforceExistence in folder-structure to use a ruleId #19

Answered by Igorkowalski94
rishitank asked this question in Ideas
Discussion options

You must be logged in to vote

In version 2.2.3, I'll also add the ability to change the case for enforceExistence, such as nodeName, NodeName, node-name, node_name, and NODE_NAME. Additionally, I'll include validation to ensure that the correct reference is being used.

enforceExistence?: string[]

Enforce the existence of other folders/files when a given folder/file exists.

In enforceExistence, the following references are available:

  • {nodeName} - Take the name of the current file or folder and change it to camelCase.
  • {NodeName} - Take the name of the current file or folder and change it to PascalCase.
  • {node-name} - Take the name of the current file or folder and change it to kebab-case.
  • {node_name} - Take the name of…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Igorkowalski94
Comment options

Answer selected by Igorkowalski94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants