diff --git a/web/packages/build-config/eslintrc-typescript-react.js b/web/packages/build-config/eslintrc-typescript-react.js index faec25874..bab52c7e9 100644 --- a/web/packages/build-config/eslintrc-typescript-react.js +++ b/web/packages/build-config/eslintrc-typescript-react.js @@ -6,19 +6,11 @@ module.exports = { "plugin:@typescript-eslint/strict-type-checked", "plugin:@typescript-eslint/stylistic-type-checked", ], - plugins: ["@typescript-eslint", "react-namespace-import"], + plugins: ["@typescript-eslint"], parser: "@typescript-eslint/parser", parserOptions: { project: true, }, root: true, ignorePatterns: [".eslintrc.js"], - rules: { - // The recommended way to import React is: - // - // import * as React from "react"; - // - // This rule enforces that. - "react-namespace-import/no-namespace-import": "error", - }, }; diff --git a/web/packages/build-config/package.json b/web/packages/build-config/package.json index d7271be98..a2fd2c7eb 100644 --- a/web/packages/build-config/package.json +++ b/web/packages/build-config/package.json @@ -6,7 +6,6 @@ "@typescript-eslint/eslint-plugin": "^7", "@typescript-eslint/parser": "^7", "eslint-plugin-react-hooks": "^4.6", - "eslint-plugin-react-namespace-import": "^1.0", "prettier-plugin-organize-imports": "^3.2", "prettier-plugin-packagejson": "^2.4" } diff --git a/web/yarn.lock b/web/yarn.lock index a6e1a900c..a159fb523 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -639,7 +639,7 @@ resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.2.tgz#b74129719fc8d11c01868010082d483b7545591a" integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== -"@types/node@*", "@types/node@^20": +"@types/node@*": version "20.11.20" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.20.tgz#f0a2aee575215149a62784210ad88b3a34843659" integrity sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg== @@ -1766,11 +1766,6 @@ eslint-plugin-jsx-a11y@^6.7.1: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-react-namespace-import@^1.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-namespace-import/-/eslint-plugin-react-namespace-import-1.0.5.tgz#9da74bb169d13336a187abd3c42e22d2fe10f91d" - integrity sha512-0gUj6hSRL8cTxyLtVvbu/Rzr3aEmO4fUyJIc3qkGum2Lth+atx3z/JJgBd+PUpaksdv0D6gmBBHwjmn/nPAobQ== - eslint-plugin-react@^7.33.2, eslint-plugin-react@latest: version "7.33.2" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608"