From ed54cc8098b83c9f36b9db9e54ba1392a5064fca Mon Sep 17 00:00:00 2001 From: the letter L <134443988+turbocrime@users.noreply.github.com> Date: Mon, 9 Sep 2024 08:34:56 -0700 Subject: [PATCH] remove react-refresh lint (#1750) * remove react-refresh lint * rm plugin package --------- Co-authored-by: turbocrime --- eslint.config.js | 3 --- package.json | 1 - pnpm-lock.yaml | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index b556d4153e..6652fbe388 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,7 +9,6 @@ import * as import_ from 'eslint-plugin-import'; import prettier from 'eslint-config-prettier'; import react from 'eslint-plugin-react'; import react_hooks from 'eslint-plugin-react-hooks'; -import react_refresh from 'eslint-plugin-react-refresh'; import storybook from 'eslint-plugin-storybook'; import tailwindcss from 'eslint-plugin-tailwindcss'; import turbo from 'eslint-plugin-turbo'; @@ -87,7 +86,6 @@ export default tseslint.config( react: fixupPluginRules(react), // @ts-expect-error - react_hooks is incorrectly typed 'react-hooks': fixupPluginRules(react_hooks), - 'react-refresh': react_refresh, }, // @ts-expect-error - rules are incorrectly typed rules: { @@ -101,7 +99,6 @@ export default tseslint.config( allowExpressions: true, }, ], - 'react-refresh/only-export-components': 'off', }, }, diff --git a/package.json b/package.json index 31f8b5eac8..e0872f6aa7 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "5.1.0-rc-c3cdbec0a7-20240708", - "eslint-plugin-react-refresh": "^0.4.8", "eslint-plugin-storybook": "0.9.0--canary.156.ed236ca.0", "eslint-plugin-tailwindcss": "^3.17.4", "eslint-plugin-turbo": "^2.0.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 51369f5039..2922f25f98 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,9 +95,6 @@ importers: eslint-plugin-react-hooks: specifier: 5.1.0-rc-c3cdbec0a7-20240708 version: 5.1.0-rc-c3cdbec0a7-20240708(eslint@9.6.0) - eslint-plugin-react-refresh: - specifier: ^0.4.8 - version: 0.4.8(eslint@9.6.0) eslint-plugin-storybook: specifier: 0.9.0--canary.156.ed236ca.0 version: 0.9.0--canary.156.ed236ca.0(eslint@9.6.0)(typescript@5.5.3) @@ -6840,11 +6837,6 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-refresh@0.4.8: - resolution: {integrity: sha512-MIKAclwaDFIiYtVBLzDdm16E+Ty4GwhB6wZlCAG1R3Ur+F9Qbo6PRxpA5DK7XtDgm+WlCoAY2WxAwqhmIDHg6Q==} - peerDependencies: - eslint: '>=7' - eslint-plugin-react@7.35.0: resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} engines: {node: '>=4'} @@ -20012,10 +20004,6 @@ snapshots: dependencies: eslint: 9.6.0 - eslint-plugin-react-refresh@0.4.8(eslint@9.6.0): - dependencies: - eslint: 9.6.0 - eslint-plugin-react@7.35.0(eslint@9.6.0): dependencies: array-includes: 3.1.8