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:
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Promotes functional programming and composition over inheritance while maintaining consistency with WordPress best practices.
|
||||
globs: /wp-plugin/**/*.*
|
||||
---
|
||||
- Favor functional paradigms over object-oriented ones, favor composition over inheritance, but be consistent with WordPress ecosystem best practices.
|
||||
- Optimize for readability.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Enforces WordPress coding standards and prefers TypeScript for JavaScript/TypeScript files within the WordPress plugin.
|
||||
globs: /wp-plugin/**/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Always use WordPress coding standards when writing JavaScript and TypeScript.
|
||||
- Prefer writing TypeScript over JavaScript.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Enforces WordPress coding standards and type hinting for PHP files within the WordPress plugin.
|
||||
globs: /wp-plugin/**/*.php
|
||||
---
|
||||
- Always use WordPress coding standards when writing PHP.
|
||||
- Always type hint PHP code.
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Applies general rules for WordPress plugin development, including coding standards, type hinting, and language preferences.
|
||||
globs: /wp-plugin/**/*.*
|
||||
---
|
||||
- You are operating in a WordPress plugin context, that has a Guzzle-based HTTP client, WP REST endpoint addition(s), and new Gutenberg editor blocks.
|
||||
- Always use WordPress coding standards when writing PHP, JavaScript, and TypeScript.
|
||||
- Always type hint PHP code.
|
||||
- Prefer writing TypeScript over JavaScript.
|
||||
- Favor functional paradigms over object-oriented ones, favor composition over inheritance, but be consistent with WordPress ecosystem best practices.
|
||||
- Optimize for readability.
|
||||
Reference in New Issue
Block a user