mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Enable ESLint prefer-const rule (#4349)
# Description of Changes Enable ESLint [prefer-const rule](https://eslint.org/docs/latest/rules/prefer-const)
This commit is contained in:
parent
003285506f
commit
74609e54fe
@ -18,7 +18,6 @@ export default defineConfig(
|
|||||||
"no-empty-pattern": "off", // Temporarily disabled until codebase conformant
|
"no-empty-pattern": "off", // Temporarily disabled until codebase conformant
|
||||||
"no-undef": "off", // Temporarily disabled until codebase conformant
|
"no-undef": "off", // Temporarily disabled until codebase conformant
|
||||||
"no-case-declarations": "off", // Temporarily disabled until codebase conformant
|
"no-case-declarations": "off", // Temporarily disabled until codebase conformant
|
||||||
"prefer-const": "off", // Temporarily disabled until codebase conformant
|
|
||||||
"@typescript-eslint/ban-ts-comment": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/ban-ts-comment": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-empty-object-type": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-empty-object-type": "off", // Temporarily disabled until codebase conformant
|
||||||
"@typescript-eslint/no-explicit-any": "off", // Temporarily disabled until codebase conformant
|
"@typescript-eslint/no-explicit-any": "off", // Temporarily disabled until codebase conformant
|
||||||
|
@ -519,10 +519,7 @@ export class EnhancedPDFProcessingService {
|
|||||||
this.notifyListeners();
|
this.notifyListeners();
|
||||||
|
|
||||||
// Force memory cleanup hint
|
// Force memory cleanup hint
|
||||||
if (typeof window !== 'undefined' && window.gc) {
|
setTimeout(() => window.gc?.(), 100);
|
||||||
let gc = window.gc;
|
|
||||||
setTimeout(() => gc(), 100);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -92,8 +92,6 @@ class IndexedDBManager {
|
|||||||
|
|
||||||
// Create or update object stores
|
// Create or update object stores
|
||||||
config.stores.forEach(storeConfig => {
|
config.stores.forEach(storeConfig => {
|
||||||
let store: IDBObjectStore;
|
|
||||||
|
|
||||||
if (db.objectStoreNames.contains(storeConfig.name)) {
|
if (db.objectStoreNames.contains(storeConfig.name)) {
|
||||||
// Store exists - for now, just continue (could add migration logic here)
|
// Store exists - for now, just continue (could add migration logic here)
|
||||||
console.log(`Object store '${storeConfig.name}' already exists`);
|
console.log(`Object store '${storeConfig.name}' already exists`);
|
||||||
@ -109,7 +107,7 @@ class IndexedDBManager {
|
|||||||
options.autoIncrement = storeConfig.autoIncrement;
|
options.autoIncrement = storeConfig.autoIncrement;
|
||||||
}
|
}
|
||||||
|
|
||||||
store = db.createObjectStore(storeConfig.name, options);
|
const store = db.createObjectStore(storeConfig.name, options);
|
||||||
console.log(`Created object store '${storeConfig.name}'`);
|
console.log(`Created object store '${storeConfig.name}'`);
|
||||||
|
|
||||||
// Create indexes
|
// Create indexes
|
||||||
|
Loading…
Reference in New Issue
Block a user