Skip to content

Commit

Permalink
remove no-unused-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Dec 16, 2024
1 parent f2cc585 commit 2732d08
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/desktop-client/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ expect.extend({
},
});

// eslint-disable-next-line import/no-unused-modules, import/no-default-export
// eslint-disable-next-line import/no-default-export
export default defineConfig({
timeout: 30000, // 30 seconds
retries: 1,
Expand Down
3 changes: 1 addition & 2 deletions packages/desktop-client/src/build-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const process = {
},
};

// eslint-disable-next-line import/no-unused-modules
export { process };
// eslint-disable-next-line import/no-unused-modules

export { global };
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ type CreatePayeeButtonProps = {
style?: CSSProperties;
};

// eslint-disable-next-line import/no-unused-modules
export function CreatePayeeButton({
Icon,
payeeName,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const injectShims = (): Plugin[] => {
};

// https://vitejs.dev/config/
// eslint-disable-next-line import/no-default-export

export default defineConfig(async ({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
const devHeaders = {
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-electron/beforePackHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ const beforePackHook = async (context: AfterPackContext) => {
}
};

// eslint-disable-next-line import/no-unused-modules, import/no-default-export
// eslint-disable-next-line import/no-default-export
export default beforePackHook;
1 change: 0 additions & 1 deletion packages/loot-core/src/server/accounts/payees.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-strict-ignore
import * as db from '../db';

/* eslint-disable import/no-unused-modules */
export async function createPayee(description) {
// Check to make sure no payee already exists with exactly the same
// name
Expand Down
2 changes: 0 additions & 2 deletions packages/loot-core/src/server/importers/ynab4-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-unused-modules */

export namespace YNAB4 {
export interface YFull {
masterCategories: MasterCategory[];
Expand Down
2 changes: 0 additions & 2 deletions packages/loot-core/src/server/importers/ynab5-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-unused-modules */

export namespace YNAB5 {
export interface Budget {
name?: string;
Expand Down
4 changes: 1 addition & 3 deletions packages/loot-core/src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,6 @@ async function setupDocumentsDir() {
fs._setDocumentDir(documentDir);
}

// eslint-disable-next-line import/no-unused-modules
export async function initApp(isDev, socketName) {
await sqlite.init();
await Promise.all([asyncStorage.init(), fs.init()]);
Expand Down Expand Up @@ -2355,7 +2354,6 @@ export type InitConfig = {
password?: string;
};

// eslint-disable-next-line import/no-unused-modules
export async function init(config: InitConfig) {
// Get from build

Expand Down Expand Up @@ -2394,7 +2392,7 @@ export async function init(config: InitConfig) {
}

// Export a few things required for the platform
// eslint-disable-next-line import/no-unused-modules

export const lib = {
getDataDir: fs.getDataDir,
sendMessage: (msg, args) => connection.send(msg, args),
Expand Down
2 changes: 0 additions & 2 deletions packages/loot-core/src/shared/environment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-unused-modules */

export function isPreviewEnvironment() {
return String(process.env.REACT_APP_NETLIFY) === 'true';
}
Expand Down

0 comments on commit 2732d08

Please sign in to comment.