mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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:
@@ -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 -->
|
||||
|
||||
|
||||
@@ -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",
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user