[Feature request] Allow enforceExistence
in folder-structure
to use a ruleId
#19
-
Is your feature request related to a problem? Please describe. Describe the solution you'd like
Describe alternatives you've considered Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
In version 2.2.3, I'll also add the ability to change the case for
enforceExistence
, such asnodeName
,NodeName
,node-name
,node_name
, andNODE_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 tocamelCase
.{NodeName}
- Take the name of the current file or folder and change it toPascalCase
.{node-name}
- Take the name of the current file or folder and change it tokebab-case
.{node_name}
- Take the name of…