@@ -11,7 +11,7 @@ This rule enforces consistent naming conventions for Vue component filenames and
1111- ** Stores** → Free naming (any filename allowed)
1212- ** Composables** → Free naming (any filename allowed)
1313- ** Services** → Start with lowercase letter → ` index.ts ` , ` auth.ts ` , ` frameMessages.ts `
14- - ** Entities** → PascalCase filenames → ` User .ts` , ` Settings .ts` , ` ApiResponse .ts`
14+ - ** Entities** → Start with lowercase letter → ` user .ts` , ` settings .ts` , ` apiResponse .ts`
1515- ** Routes** → Must be exactly ` routes.ts ` in modules
1616- ** Menu** → Must be exactly ` menu.ts ` in modules
1717
@@ -75,7 +75,7 @@ export class AuthService {
7575
7676``` js
7777// File: src/entities/user.ts
78- // Entity files should use PascalCase
78+ // Entity files should start with lowercase letter
7979export interface User {
8080 // entity definition
8181}
@@ -183,8 +183,8 @@ export function sendMessage() {
183183```
184184
185185``` js
186- // File: src/entities/User .ts
187- // Proper entity naming (PascalCase )
186+ // File: src/entities/user .ts
187+ // Proper entity naming (lowercase start )
188188export interface User {
189189 id : string
190190 name : string
@@ -193,8 +193,8 @@ export interface User {
193193```
194194
195195``` js
196- // File: src/entities/Settings .ts
197- // Proper entity naming (PascalCase )
196+ // File: src/entities/settings .ts
197+ // Proper entity naming (lowercase start )
198198export interface Settings {
199199 theme : string
200200 language : string
@@ -303,8 +303,8 @@ The rule automatically detects file types based on directory structure and filen
303303
304304- ** Directory patterns** : ` /entities/ ` , ` /entity/ `
305305- ** File pattern** : ` *.ts ` , ` *.js `
306- - ** Convention** : PascalCase filenames (domain/business entities)
307- - ** Examples** : ` User .ts` , ` Settings .ts` , ` ApiResponse .ts` , ` Permission .ts`
306+ - ** Convention** : Start with lowercase letter (domain/business entities)
307+ - ** Examples** : ` user .ts` , ` settings .ts` , ` apiResponse .ts` , ` permission .ts`
308308
309309### Routes
310310
@@ -336,7 +336,7 @@ This enforces:
336336- File type-specific validation based on directory structure
337337- ** PascalCase component filenames** for all Vue files (regardless of explicit component names)
338338- Proper filename patterns for services
339- - ** PascalCase entity filenames** for business/domain objects
339+ - ** Lowercase entity filenames** for business/domain objects
340340- ** Exact naming for module routes and menu files**
341341- ** Free naming for stores and composables** (no restrictions)
342342
@@ -405,9 +405,9 @@ This enforces:
405405✅ src/services/index.ts → OK (starts with lowercase)
406406
407407# Entity naming issues
408- ❌ src/entities/user .ts → Should be User .ts
409- ❌ src/entities/api-response .ts → Should be ApiResponse .ts
410- ✅ src/entities/Settings .ts → OK (PascalCase )
408+ ❌ src/entities/User .ts → Should be user .ts
409+ ❌ src/entities/Api-Response .ts → Should be apiResponse .ts
410+ ✅ src/entities/settings .ts → OK (lowercase start )
411411
412412# Module file naming issues
413413❌ src/modules/auth/Routes.ts → Should be routes.ts
0 commit comments