mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Specific coding standards and conventions for Laravel package development, covering naming conventions.
|
||||
globs: */src/**/*.*
|
||||
---
|
||||
- File names: Use kebab-case (e.g., my-class-file.php)
|
||||
- Class and Enum names: Use PascalCase (e.g., MyClass)
|
||||
- Method names: Use camelCase (e.g., myMethod)
|
||||
- Variable and Properties names: Use snake_case (e.g., my_variable)
|
||||
- Constants and Enum Cases names: Use SCREAMING_SNAKE_CASE (e.g., MY_CONSTANT)
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: General guidelines for developing Laravel packages, including PHP version, conventions, and tooling.
|
||||
globs: */src/**/*.*
|
||||
---
|
||||
- Use PHP 8.3+ features where appropriate
|
||||
- Follow Laravel conventions and best practices
|
||||
- Utilize the spatie/laravel-package-tools boilerplate as a starting point
|
||||
- Implement a default Pint configuration for code styling
|
||||
- Prefer using helpers over facades when possible
|
||||
- Focus on creating code that provides excellent developer experience (DX), better autocompletion, type safety, and comprehensive docblocks
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Guidance on package structure and file organization within the Laravel package.
|
||||
globs: */src/**/*.*
|
||||
---
|
||||
- Outline the directory structure for the package
|
||||
- Describe the purpose of each main directory and key files
|
||||
- Explain how the package will be integrated into a Laravel application
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Outlines the strategy for testing and documentation within the Laravel Package.
|
||||
globs: */tests/**/*.*
|
||||
---
|
||||
- Provide an overview of the testing strategy (e.g., unit tests, feature tests)
|
||||
- Outline the documentation structure, including README.md, usage examples, and API references
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Guidelines for README.md file.
|
||||
globs: */README.md
|
||||
---
|
||||
- The README.md file should include usage examples and API references
|
||||
Reference in New Issue
Block a user