mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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:
@@ -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`
|
||||
|
||||
@@ -170,7 +170,7 @@ const rule: Rule.RuleModule = {
|
||||
}
|
||||
}
|
||||
context.report({
|
||||
message: `[ReactForget] ${detail.reason}`,
|
||||
message: detail.reason,
|
||||
loc: detail.loc,
|
||||
suggest,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user