Pular para o conteúdo
Kitbay
SkillOficial

lint-new

NOASSERTIONAtualizado em 11 de nov. de 202645.751Estrelas no GitHub

A maintainer skill in Sentry's repository for adding a new rule, with tests, to its own @sentry/scraps ESLint plugin that enforces front-end design-system conventions.

O que a skill ensina

A maintainer skill in Sentry's repository for adding a new rule, with tests, to its own @sentry/scraps ESLint plugin that enforces front-end design-system conventions. The agent picks one of four rule types (rewriting imports, checking style values per CSS property, restricting JSX in certain props, or scanning static CSS text), reuses the plugin's shared syntax-tree helpers, and writes the rule and a spec file with the typescript-eslint rule tester. Autofix is added by default unless the change is ambiguous, needs type information or could alter behaviour, in which case every invalid test case must still state its expected output. The rule is then exported, enabled in the ESLint config and checked by running its spec.

O que faz

  • Scaffold a new ESLint rule and its tests
  • Reuse shared syntax-tree helpers
  • Decide whether a rule gets an autofix
  • Register and enable the rule