Replace eslint-plugin-react with @eslint-react/eslint-plugin (#17152)
This commit is contained in:
1 parent
f818a362d6
commit
ca4ab12695
10 files changed
+382
-1246
No files matched your search
+9
-13
@@ -1,12 +1,12 @@
|
||||
import url from "node:url";
|
||||
import eslintPluginJs from "@eslint/js";
|
||||
import eslintPluginEslintReact from "@eslint-react/eslint-plugin";
|
||||
import eslintPluginStylisticJs from "@stylistic/eslint-plugin-js";
|
||||
import eslintPluginTypescriptEslint from "@typescript-eslint/eslint-plugin";
|
||||
import { isCI } from "ci-info";
|
||||
import eslintConfigPrettier from "eslint-config-prettier";
|
||||
import eslintPluginJest from "eslint-plugin-jest";
|
||||
import eslintPluginN from "eslint-plugin-n";
|
||||
import eslintPluginReact from "eslint-plugin-react";
|
||||
import eslintPluginRegexp from "eslint-plugin-regexp";
|
||||
import eslintPluginSimpleImportSort from "eslint-plugin-simple-import-sort";
|
||||
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
||||
@@ -443,33 +443,29 @@ export default [
|
||||
},
|
||||
{
|
||||
files: ["website/**/*"],
|
||||
...eslintPluginReact.configs.flat.recommended,
|
||||
...eslintPluginEslintReact.configs.recommended,
|
||||
},
|
||||
{
|
||||
files: ["website/**/*"],
|
||||
languageOptions: {
|
||||
globals: { ...globals.browser, ...globals.worker },
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
"react-x": {
|
||||
version: "18",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"react/display-name": "off",
|
||||
"react/no-deprecated": "off",
|
||||
"react/prop-types": "off",
|
||||
"unicorn/filename-case": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["website/docusaurus.config.js"],
|
||||
languageOptions: {
|
||||
sourceType: "module",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["website/playground/**/*"],
|
||||
files: ["website/docusaurus.config.js", "website/playground/**/*"],
|
||||
languageOptions: {
|
||||
sourceType: "module",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user