@samitouri / QOS-React-2 / commits / 72d374e978

[linter] rename ReactForgetDiagnostics to ReactCompilerRule

[linter] rename ReactForgetDiagnostics to ReactCompilerRule

Jan Kassens committed Mar 14, 2024 at 11:53 UTC 72d374e9788c6f130c97087b8a2494cabb8954cb
3 files changed +4 -4
compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRule-test.ts renamed
+2 -2
@@ -6,7 +6,7 @@
6 */
7
8 import { RuleTester as ESLintTester } from "eslint";
9 -import ReactForgetDiagnostics from "../src/rules/ReactForgetDiagnostics";
9 +import ReactCompilerRule from "../src/rules/ReactCompilerRule";
10
11 /**
12 * A string template tag that removes padding from the left side of multi-line strings
@@ -144,4 +144,4 @@ const eslintTester = new ESLintTester({
144 enableExperimentalComponentSyntax: true,
145 },
146 });
147 -eslintTester.run("react-forget-diagnostics", ReactForgetDiagnostics, tests);
147 +eslintTester.run("react-compiler", ReactCompilerRule, tests);
compiler/packages/eslint-plugin-react-compiler/src/index.ts
+2 -2
@@ -5,10 +5,10 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -import ReactForgetDiagnostics from "./rules/ReactForgetDiagnostics";
8 +import ReactCompilerRule from "./rules/ReactCompilerRule";
9
10 module.exports = {
11 rules: {
12 - "react-forget-diagnostics": ReactForgetDiagnostics,
12 + "react-compiler": ReactCompilerRule,
13 },
14 };
compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts renamed