feat: Migrate ESLint to flat config and resolve initial linting errors

Migrated the ESLint configuration to the new flat config format ()
and addressed several initial linting errors.

Key changes include:
- Updated ESLint configuration to treat  as warnings instead of errors.
- Fixed  errors in  by declaring  and .
- Corrected  error in  by using  instead of an out-of-scope .
- Resolved  error in  by replacing the undefined  directive with the  component.
- Addressed  errors in  by replacing  with  and  with .
- Fixed  errors in  by importing necessary modules (, , ) and adding missing props (, , , , ).
This commit is contained in:
Scott Idem
2025-11-17 18:46:54 -05:00
parent b99e85f1db
commit 7e1eaba3bc
374 changed files with 95654 additions and 93952 deletions

View File

@@ -3,35 +3,34 @@
// import { core_func } from '$lib/ae_core_functions';
export async function load({ parent }) {
let log_lvl: number = 0;
const log_lvl: number = 0;
let data = await parent();
// console.log(`ae_events_pres_mgmt +layout.ts data:`, data);
const data = await parent();
// console.log(`ae_events_pres_mgmt +layout.ts data:`, data);
// let account_id = data.account_id;
// if (!account_id) {
// console.log(`events_pres_mgmt +layout.ts: The account_id was not found in the data!!!`);
// return false;
// }
// let account_id = data.account_id;
// if (!account_id) {
// console.log(`events_pres_mgmt +layout.ts: The account_id was not found in the data!!!`);
// return false;
// }
// let ae_acct = data[account_id];
// if (log_lvl) {
// console.log(`ae_acct = `, ae_acct);
// }
// let ae_acct = data[account_id];
// if (log_lvl) {
// console.log(`ae_acct = `, ae_acct);
// }
// let submenu = {
// main: {name: 'Main', href: '/events', access: false},
// // manage: {name: 'Manage', href: '/events/manage', access: 'administrator', disable: true, hide: true},
// locations: {name: 'Locations', href: '/events/locations', access: false, disable: false, hide: false},
// };
// data.submenu = submenu
// let submenu = {
// main: {name: 'Main', href: '/events', access: false},
// // manage: {name: 'Manage', href: '/events/manage', access: 'administrator', disable: true, hide: true},
// locations: {name: 'Locations', href: '/events/locations', access: false, disable: false, hide: false},
// };
// data.submenu = submenu
// // WARNING: Precaution against shared data between sites and sessions.
// data[account_id] = ae_acct;
// // WARNING: Precaution against shared data between sites and sessions.
// data[account_id] = ae_acct;
return data;
return data;
}
// export const prerender = false;