### Required

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L46-L46)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L55-L55)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L58-L58)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L68-L68)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L96-L96)[\[6\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L150-L150)[\[7\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L155-L155)[\[8\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L213-L213)[\[9\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L218-L218)[\[10\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L43-L43)[\[11\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L71-L71)[\[12\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L305-L305)[\[13\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L314-L314)[\[14\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L316-L316)[\[15\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L491-L491)
Use sentence case for UI text.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L114-L114)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L132-L132)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L234-L234)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L256-L256)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L310-L310)[\[6\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L328-L328)[\[7\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L41-L41)[\[8\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L50-L50)[\[9\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L65-L65)[\[10\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L72-L72)[\[11\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L78-L78)[\[12\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L81-L81)[\[13\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L85-L85)[\[14\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L91-L91)[\[15\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L98-L98)[\[16\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L103-L103)[\[17\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L110-L110)[\[18\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L118-L118)[\[19\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L123-L123)[\[20\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L379-L379)[\[21\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L383-L383)[\[22\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L405-L405)
Avoid setting styles directly via `element.style.cssText`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L145-L145)
`substr` is deprecated. A legacy feature for browser compatibility

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L182-L182)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L229-L229)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L267-L267)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L98-L98)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L126-L126)[\[6\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L250-L250)[\[7\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L302-L302)[\[8\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L387-L387)[\[9\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L387-L387)[\[10\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L418-L418)[\[11\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L485-L485)[\[12\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L500-L500)[\[13\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L723-L723)[\[14\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L739-L739)[\[15\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L754-L754)[\[16\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L769-L769)[\[17\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L795-L795)[\[18\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L839-L839)[\[19\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L879-L879)[\[20\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L918-L918)
Unexpected any. Specify a different type.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/OpenAIConnectionModal.ts#L185-L187)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L194-L194)
Unexpected confirm.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L26-L26)
Avoid setting styles directly via `element.style.width`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L27-L27)
Avoid setting styles directly via `element.style.maxWidth`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L28-L28)
Avoid setting styles directly via `element.style.height`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L29-L29)
Avoid setting styles directly via `element.style.maxHeight`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L38-L38)
Avoid setting styles directly via `element.style.color`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L39-L39)
Avoid setting styles directly via `element.style.marginBottom`. Use CSS classes for better theming and maintainability.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L130-L130)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L77-L80)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L231-L234)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L342-L342)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L376-L376)[\[6\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L454-L454)[\[7\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L468-L468)[\[8\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L146-L146)[\[9\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L441-L454)[\[10\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L483-L486)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L134-L134)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L144-L144)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L95-L95)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L122-L122)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L149-L149)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L176-L176)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L463-L463)
Invalid type "never" of template literal expression.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L231-L231)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L305-L305)
Unexpected use of 'fetch'. Use the built-in `requestUrl` function instead of `fetch` for network requests in Obsidian.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L112-L112)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L122-L122)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L214-L214)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L224-L224)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L312-L312)[\[6\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L322-L322)[\[7\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L399-L399)[\[8\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L409-L409)[\[9\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L493-L493)[\[10\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L527-L527)[\[11\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L560-L560)[\[12\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L592-L592)[\[13\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/scanner.ts#L41-L41)[\[14\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L503-L503)[\[15\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L521-L521)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L22-L88)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L162-L241)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L330-L379)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L443-L471)
Promise-returning method provided where a void return was expected by extended/implemented type 'Modal'.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L109-L109)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L261-L261)
Async method 'updateMonthDropdown' has no 'await' expression.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L274-L274)
Async method 'updateWeekDropdown' has no 'await' expression.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L404-L404)
Async method 'updateQuarterDropdown' has no 'await' expression.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L502-L518)
Promise-returning method provided where a void return was expected by extended/implemented type 'Plugin_2'.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L649-L649)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L658-L658)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L685-L685)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L703-L703)
Async method 'callback' has no 'await' expression.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L21-L21)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L43-L43)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L299-L299)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L378-L378)[\[5\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L532-L532)
Use `new Setting(containerEl).setName(...).setHeading()` instead of creating HTML heading elements directly.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/utils/encryption.ts#L8-L8)
Avoid using the navigator API to detect the operating system. Use the Platform API instead.



---

### Optional

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/components/SystemPromptModal.ts#L1-L1)
'Setting' is defined but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/ai-client.ts#L1-L1)
'AIResponse' is defined but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L1-L1)
'TFile' is defined but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L1-L1)
'Notice' is defined but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L2-L2)
'DiaryData' is defined but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L121-L121)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L223-L223)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L321-L321)[\[4\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L408-L408)
Use 'FileManager.trashFile()' instead of 'Vault.delete()' to respect the user's file deletion preference.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L280-L280)
'yearData' is assigned a value but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/core/organizer.ts#L385-L385)
'month' is assigned a value but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L30-L30)[\[2\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L169-L169)[\[3\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L337-L337)
'yearSetting' is assigned a value but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/main.ts#L115-L115)
'allOption' is assigned a value but never used.

[\[1\]](https://github.com/shiyuanyou/obsidian-diary-summaries/blob/94f158e5002d614754898216c8bef9695a8baac7/src/settings.ts#L4-L4)
'DiaryOrganizerSettings' is defined but never used.

