mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[linter] rename ReactForgetDiagnostics to ReactCompilerRule
[linter] rename ReactForgetDiagnostics to ReactCompilerRule
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
import { RuleTester as ESLintTester } from "eslint";
|
||||
import ReactForgetDiagnostics from "../src/rules/ReactForgetDiagnostics";
|
||||
import ReactCompilerRule from "../src/rules/ReactCompilerRule";
|
||||
|
||||
/**
|
||||
* A string template tag that removes padding from the left side of multi-line strings
|
||||
@@ -144,4 +144,4 @@ const eslintTester = new ESLintTester({
|
||||
enableExperimentalComponentSyntax: true,
|
||||
},
|
||||
});
|
||||
eslintTester.run("react-forget-diagnostics", ReactForgetDiagnostics, tests);
|
||||
eslintTester.run("react-compiler", ReactCompilerRule, tests);
|
||||
@@ -5,10 +5,10 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import ReactForgetDiagnostics from "./rules/ReactForgetDiagnostics";
|
||||
import ReactCompilerRule from "./rules/ReactCompilerRule";
|
||||
|
||||
module.exports = {
|
||||
rules: {
|
||||
"react-forget-diagnostics": ReactForgetDiagnostics,
|
||||
"react-compiler": ReactCompilerRule,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user