Skip to main content
Version: 1.5.0

Best Practices

For better organization, it is recommended to create a rules directory within the src directory. In this directory, create separate files for each set of rules, naming them according to the request they validate.

Example Directory Structure

src/
├── rules/
│ ├── user-registration.rules.js
│ ├── login.rules.js
│ └── profile-update.rules.js