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

Rename eslint-plugin-react-forget to eslint-plugin-react-compiler
This commit is contained in:
Jan Kassens
2024-01-16 17:36:37 -05:00
parent 9b6605d313
commit da7c466f07
10 changed files with 10 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
# eslint-plugin-react-forget
# eslint-plugin-react-compiler
ESLint plugin for React Forget
ESLint plugin surfacing problematic React code found by the React compiler.
## Installation
@@ -10,20 +10,20 @@ You'll first need to install [ESLint](https://eslint.org/):
npm i eslint --save-dev
```
Next, install `eslint-plugin-react-forget`:
Next, install `eslint-plugin-react-compiler`:
```sh
npm install eslint-plugin-react-forget --save-dev
npm install eslint-plugin-react-compiler --save-dev
```
## Usage
Add `react-forget` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
Add `react-compiler` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"react-forget"
"react-compiler"
]
}
```
@@ -34,7 +34,7 @@ Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"react-forget/rule-name": 2
"react-compiler/rule-name": 2
}
}
```
@@ -44,5 +44,3 @@ Then configure the rules you want to use under the rules section.
<!-- begin auto-generated rules list -->
TODO: Run eslint-doc-generator to generate the rules list.
<!-- end auto-generated rules list -->

View File

@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-forget",
"name": "eslint-plugin-react-compiler",
"version": "0.0.0",
"description": "ESLint plugin for React Forget",
"description": "ESLint plugin to display errors found by the React compiler.",
"keywords": [
"eslint",
"eslintplugin",

View File

@@ -21,7 +21,7 @@ yarn install --silent
rm -rf forget-feedback/dist
mkdir forget-feedback/dist
packages=("babel-plugin-react-forget" "eslint-plugin-react-forget" "react-forget-runtime")
packages=("babel-plugin-react-forget" "eslint-plugin-react-compiler" "react-forget-runtime")
for package in ${packages[@]}; do
echo "Building" $package
yarn workspace $package run build