بنقرة واحدة
oxlint-rules
Portable guidance for oxlint rules. Use when work involves oxlint rules.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Portable guidance for oxlint rules. Use when work involves oxlint rules.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Portable guidance for delegation. Use when work involves delegation.
Portable guidance for git and github. Use when work involves git and github.
Portable guidance for tailwind styling. Use when work involves tailwind styling.
Portable guidance for testing. Use when work involves testing.
| name | oxlint-rules |
| description | Portable guidance for oxlint rules. Use when work involves oxlint rules. |
export const myRule = {
meta: {
type: 'problem', // or 'suggestion'
docs: { description: '…' },
fixable: 'code', // omit if no autofix
messages: { id: 'Text with {{x}}.' },
schema: [], // options schema, [] = none
},
create(context) {
return {
JSXOpeningElement(node) {
context.report({ node, messageId: 'id', data: { x: 'y' }, fix: fixer => fixer.replaceText(node, '…') })
},
}
},
}
Verified working in oxlint 1.63 (don't re-test these):
context.report({ node, messageId, data, fix }); context.options[0]; context.filename; context.sourceCode.getText(node).replaceText(node, str), insertTextBefore/After, remove, removeRange, replaceTextRange.TSAsExpression/TSEnumDeclaration/TSAnyKeyword, JSXOpeningElement/JSXAttribute/JSXIdentifier/JSXMemberExpression, ImportDeclaration (.source.value, .specifiers).:exit selectors ('FunctionDeclaration:exit') and node.parent both work — use a frame stack for nesting rules.| Use | When |
|---|---|
error | deterministic, rare, must-never-ship (e.g. no-only-tests) |
warn | new/broad rules — don't break the existing build; promote to error once clean |
off (shipped) | fuzzy/heuristic rules, documented for opt-in (e.g. verb-function-names) |
Autofix only when the rewrite is always safe (no-only-tests strips .only; tailwind-class-order stable-sorts). If removing/changing the code could mask a real error (e.g. no-as-any), report without a fix.