@samitouri / QOS-React-1 / commits / da7c466f07

Rename eslint-plugin-react-forget to eslint-plugin-react-compiler

Rename eslint-plugin-react-forget to eslint-plugin-react-compiler

Jan Kassens committed Jan 16, 2024 at 17:36 UTC da7c466f07f2d13d7bd760a982e448ed449e72df
10 files changed +10 -12
compiler/packages/eslint-plugin-react-compiler/README.md renamed
+7 -9
@@ -1,6 +1,6 @@
1 -# eslint-plugin-react-forget
1 +# eslint-plugin-react-compiler
2
3 -ESLint plugin for React Forget
3 +ESLint plugin surfacing problematic React code found by the React compiler.
4
5 ## Installation
6
@@ -10,20 +10,20 @@ You'll first need to install [ESLint](https://eslint.org/):
10 npm i eslint --save-dev
11 ```
12
13 -Next, install `eslint-plugin-react-forget`:
13 +Next, install `eslint-plugin-react-compiler`:
14
15 ```sh
16 -npm install eslint-plugin-react-forget --save-dev
16 +npm install eslint-plugin-react-compiler --save-dev
17 ```
18
19 ## Usage
20
21 -Add `react-forget` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
21 +Add `react-compiler` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
22
23 ```json
24 {
25 "plugins": [
26 - "react-forget"
26 + "react-compiler"
27 ]
28 }
29 ```
@@ -34,7 +34,7 @@ Then configure the rules you want to use under the rules section.
34 ```json
35 {
36 "rules": {
37 - "react-forget/rule-name": 2
37 + "react-compiler/rule-name": 2
38 }
39 }
40 ```
@@ -44,5 +44,3 @@ Then configure the rules you want to use under the rules section.
44 <!-- begin auto-generated rules list -->
45 TODO: Run eslint-doc-generator to generate the rules list.
46 <!-- end auto-generated rules list -->
47 -
48 -
compiler/packages/eslint-plugin-react-compiler/__tests__/ReactForgetDiagnostics-test.ts renamed
compiler/packages/eslint-plugin-react-compiler/babel.config.js renamed
compiler/packages/eslint-plugin-react-compiler/package.json renamed
+2 -2
@@ -1,7 +1,7 @@
1 {
2 - "name": "eslint-plugin-react-forget",
2 + "name": "eslint-plugin-react-compiler",
3 "version": "0.0.0",
4 - "description": "ESLint plugin for React Forget",
4 + "description": "ESLint plugin to display errors found by the React compiler.",
5 "keywords": [
6 "eslint",
7 "eslintplugin",
compiler/packages/eslint-plugin-react-compiler/rollup.config.js renamed
compiler/packages/eslint-plugin-react-compiler/src/index.ts renamed
compiler/packages/eslint-plugin-react-compiler/src/rules/ReactForgetDiagnostics.ts renamed
compiler/packages/eslint-plugin-react-compiler/src/types/hermes-eslint.d.ts renamed
compiler/packages/eslint-plugin-react-compiler/tsconfig.json renamed
compiler/scripts/build-packages-forget-feedback.sh
+1 -1
@@ -21,7 +21,7 @@ yarn install --silent
21 rm -rf forget-feedback/dist
22 mkdir forget-feedback/dist
23
24 -packages=("babel-plugin-react-forget" "eslint-plugin-react-forget" "react-forget-runtime")
24 +packages=("babel-plugin-react-forget" "eslint-plugin-react-compiler" "react-forget-runtime")
25 for package in ${packages[@]}; do
26 echo "Building" $package
27 yarn workspace $package run build