Remove [ReactForget] prefix from eslint messages

Remove [ReactForget] prefix from eslint messages 

No other lint warnings have a prefix, removing this is cleaner.
This commit is contained in:
Jan Kassens
2024-01-16 13:47:20 -05:00
parent fb0cf4f833
commit 9b6605d313
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ const tests: ForgetTestCases = {
errors: [
{
message:
"[ReactForget] React Forget has bailed out of optimizing this component as one or more React eslint rules were disabled. React Forget only works when your components follow all the rules of React, disabling them may result in undefined behavior",
"React Forget has bailed out of optimizing this component as one or more React eslint rules were disabled. React Forget only works when your components follow all the rules of React, disabling them may result in undefined behavior",
suggestions: [
{
output: normalizeIndent`

View File

@@ -170,7 +170,7 @@ const rule: Rule.RuleModule = {
}
}
context.report({
message: `[ReactForget] ${detail.reason}`,
message: detail.reason,
loc: detail.loc,
suggest,
});