Remove [ReactForget] prefix from eslint messages
Remove [ReactForget] prefix from eslint messages No other lint warnings have a prefix, removing this is cleaner.
Jan Kassens committed
Jan 16, 2024 at 13:47 UTC
9b6605d313bad279722ac8ef7ed0e03bb16d111e
2 files changed
+2
-2
compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts
+1
-1
@@ -104,7 +104,7 @@ const tests: ForgetTestCases = {
104
errors: [
105
{
106
message:
107
- "[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",
107
+ "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",
108
suggestions: [
109
{
110
output: normalizeIndent`
compiler/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts
+1
-1
@@ -170,7 +170,7 @@ const rule: Rule.RuleModule = {
170
}
171
}
172
context.report({
173
- message: `[ReactForget] ${detail.reason}`,
173
+ message: detail.reason,
174
loc: detail.loc,
175
suggest,
176
});