Skip to content

Commit da7c466

Browse files
committed
Rename eslint-plugin-react-forget to eslint-plugin-react-compiler
Rename eslint-plugin-react-forget to eslint-plugin-react-compiler
1 parent 9b6605d commit da7c466

10 files changed

Lines changed: 10 additions & 12 deletions

File tree

compiler/packages/eslint-plugin-react-forget/README.md renamed to compiler/packages/eslint-plugin-react-compiler/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# eslint-plugin-react-forget
1+
# eslint-plugin-react-compiler
22

3-
ESLint plugin for React Forget
3+
ESLint plugin surfacing problematic React code found by the React compiler.
44

55
## Installation
66

@@ -10,20 +10,20 @@ You'll first need to install [ESLint](https://eslint.org/):
1010
npm i eslint --save-dev
1111
```
1212

13-
Next, install `eslint-plugin-react-forget`:
13+
Next, install `eslint-plugin-react-compiler`:
1414

1515
```sh
16-
npm install eslint-plugin-react-forget --save-dev
16+
npm install eslint-plugin-react-compiler --save-dev
1717
```
1818

1919
## Usage
2020

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:
2222

2323
```json
2424
{
2525
"plugins": [
26-
"react-forget"
26+
"react-compiler"
2727
]
2828
}
2929
```
@@ -34,7 +34,7 @@ Then configure the rules you want to use under the rules section.
3434
```json
3535
{
3636
"rules": {
37-
"react-forget/rule-name": 2
37+
"react-compiler/rule-name": 2
3838
}
3939
}
4040
```
@@ -44,5 +44,3 @@ Then configure the rules you want to use under the rules section.
4444
<!-- begin auto-generated rules list -->
4545
TODO: Run eslint-doc-generator to generate the rules list.
4646
<!-- end auto-generated rules list -->
47-
48-

compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts renamed to compiler/packages/eslint-plugin-react-compiler/__tests__/ReactForgetDiagnostics-test.ts

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/babel.config.js renamed to compiler/packages/eslint-plugin-react-compiler/babel.config.js

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/package.json renamed to compiler/packages/eslint-plugin-react-compiler/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "eslint-plugin-react-forget",
2+
"name": "eslint-plugin-react-compiler",
33
"version": "0.0.0",
4-
"description": "ESLint plugin for React Forget",
4+
"description": "ESLint plugin to display errors found by the React compiler.",
55
"keywords": [
66
"eslint",
77
"eslintplugin",

compiler/packages/eslint-plugin-react-forget/rollup.config.js renamed to compiler/packages/eslint-plugin-react-compiler/rollup.config.js

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/src/index.ts renamed to compiler/packages/eslint-plugin-react-compiler/src/index.ts

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts renamed to compiler/packages/eslint-plugin-react-compiler/src/rules/ReactForgetDiagnostics.ts

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/src/types/hermes-eslint.d.ts renamed to compiler/packages/eslint-plugin-react-compiler/src/types/hermes-eslint.d.ts

File renamed without changes.

compiler/packages/eslint-plugin-react-forget/tsconfig.json renamed to compiler/packages/eslint-plugin-react-compiler/tsconfig.json

File renamed without changes.

compiler/scripts/build-packages-forget-feedback.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yarn install --silent
2121
rm -rf forget-feedback/dist
2222
mkdir forget-feedback/dist
2323

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")
2525
for package in ${packages[@]}; do
2626
echo "Building" $package
2727
yarn workspace $package run build

0 commit comments

Comments
 (0)