Raycast provides a plugin designed to help you follow best practices as you build extensions.
Find more on developers.raycast.com.
You'll find below a summary of all the rules included in our ESLint plugin.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 | |
|---|---|---|---|
| no-ambiguous-platform-shortcut | Warn when a shortcut is ambiguous in cross-platform extensions. | ✅ | |
| no-reserved-shortcut | Warn when a shortcut prop defines a reserved shortcut that Raycast uses. | ✅ | |
| prefer-common-shortcut | Warn when a shortcut matches a common one; prefer Keyboard.Shortcut.Common.* from @raycast/api. | ✅ | 🔧 |
| prefer-ellipsis | Prefer Ellipsis Character | ✅ | 🔧 |
| prefer-placeholders | Prefer Placeholders for Text Fields | ||
| prefer-title-case | Prefer Title Case | ✅ | 🔧 |