-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 使用插件式配置 #8
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #8 +/- ##
=======================================
Coverage ? 79.18%
=======================================
Files ? 8
Lines ? 1201
Branches ? 137
=======================================
Hits ? 951
Misses ? 250
Partials ? 0 ☔ View full report in Codecov by Sentry. |
the Next Configuration
Matcher
match any
StringLiteral
,TemplateLiteral
,JSXText
andJSXAttributeText
that matchmatcher.test
RegExp provideAssignee
assign the matched text to a
key
and return thekey
.eg: you can use Map to store the text and key, and return the key.
Plugin
plugin will help you to replace the matched text with the
key
that assignee return.HookHelper
HookHelper
accept two arguments, the first is theimportSource
andname
of theuseIntl
hook, the second is theresult
of theuseIntl
hook.