Skip to content

Commit

Permalink
chore: lint and ignore dist-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Oct 27, 2023
1 parent 85cf49f commit d02300b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.template.js
plugins/*
themes/*
dist-bundle/*
dist/*
8 changes: 5 additions & 3 deletions src/renderer/coremods/notices/noticeMod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ interface NoticeMod {
Notice: React.FC<React.PropsWithChildren<NoticeProps>>;
}

const mod = await waitForModule<NoticeMod & {
default: React.FC<React.PropsWithChildren<NoticeProps>>;
}>(filters.bySource(".colorPremiumTier1,"));
const mod = await waitForModule<
NoticeMod & {
default: React.FC<React.PropsWithChildren<NoticeProps>>;
}
>(filters.bySource(".colorPremiumTier1,"));

export default {
NoticeColors: mod.NoticeColors,
Expand Down
8 changes: 5 additions & 3 deletions src/renderer/coremods/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ async function injectVersionInfo(): Promise<void> {
const mod = await waitForModule<VersionMod>(filters.bySource(".versionHash"), { raw: true });

injector.after(mod.exports, "default", (_, res) => {
res.props.children.push(" ", null,
res.props.children.push(
" ",
null,
<Text
variant="text-xs/normal"
color="text-muted"
Expand Down Expand Up @@ -66,8 +68,8 @@ export async function start(): Promise<void> {
default: {
prototype: {
getPredicateSections: (_: unknown) => SectionType[];
}
}
};
};
}>(filters.bySource("getPredicateSections"));
injector.after(mod.default.prototype, "getPredicateSections", (_, res) => {
return insertSections(res);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/modules/components/FormText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface FormTextProps {

export type FormTextCompType = React.FC<React.PropsWithChildren<FormTextProps>>;

type FormTextType = Record<FormTextTypeKey, FormTextCompType>;
export type FormTextType = Record<FormTextTypeKey, FormTextCompType>;

const FormTextComp = components.FormText;
const types = components.FormTextTypes;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["dist", "docs", "bin.mjs"]
"exclude": ["dist", "dist-bundle", "docs", "bin.mjs"]
}

0 comments on commit d02300b

Please sign in to comment.