I love not having a linter

This commit is contained in:
Nuckyz 2024-07-24 17:59:53 -03:00 committed by GitHub
parent 1f20074d4e
commit 75a8098590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2 additions and 7 deletions

View file

@ -20,7 +20,6 @@ import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants";
import { Logger } from "@utils/Logger";
import definePlugin, { OptionType } from "@utils/types";
import { findByProps } from "@webpack";
import { RelationshipStore } from "@webpack/common";
import { Message } from "discord-types/general";

View file

@ -7,7 +7,6 @@
import { DataStore } from "@api/index";
import { Logger } from "@utils/Logger";
import { openModal } from "@utils/modal";
import { findExportedComponent } from "@webpack";
import { OAuth2AuthorizeModal, showToast, Toasts, UserStore } from "@webpack/common";
import { ReviewDBAuth } from "./entities";

View file

@ -16,7 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { proxyLazy } from "@utils/lazy";
import { findByProps, webpackDependantLazy } from "@webpack";
import { Flux, FluxDispatcher } from "@webpack/common";

View file

@ -466,7 +466,7 @@ export function mapMangledModule<S extends PropertyKey>(code: string | RegExp |
callbackCalled = true;
if (typeof exports !== "object") return;
for (const exportKey in exports) {
const exportValue = exports[exportKey];
if (exportValue == null) continue;

View file

@ -16,8 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Channel } from "discord-types/general";
// eslint-disable-next-line path-alias/no-relative
import { _resolveDiscordLoaded, filters, find, findByCode, findByProps, mapMangledModule, waitFor } from "../api";
import type * as t from "./types/utils";

View file

@ -252,7 +252,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory)
`id: ${String(id)}` + interpolateIfDefined`, WebpackInstance origin: ${webpackInstanceFileName}` +
")"
);
_initWebpack(require as WebpackRequire);
} else if (IS_DEV) {
logger.error("WebpackRequire was not initialized, running modules without patches instead.");