### Required

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/client.ts#L157-L157)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/client.ts#L243-L243)
Expected the Promise rejection reason to be an Error.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/client.ts#L226-L226)
Invalid operand for a '+' operation. Operands must each be a number or string, allowing a string + any of: `any`, `boolean`, `null`, `RegExp`, `undefined`. Got `Error`.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/client.ts#L230-L245)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/folderSuggestions.ts#L14-L26)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/folderSuggestions.ts#L14-L14)
Async arrow function has no 'await' expression.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/folderSuggestions.ts#L21-L21)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L41-L41)
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/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L789-L789)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1-L1)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L2-L2)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L3-L3)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L4-L4)[\[6\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L5-L5)[\[7\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L6-L6)[\[8\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L7-L7)[\[9\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L9-L9)[\[10\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L10-L10)[\[11\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L11-L11)[\[12\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L1-L1)[\[13\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L2-L2)[\[14\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L3-L3)[\[15\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L4-L4)[\[16\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L5-L5)[\[17\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L7-L7)[\[18\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L761-L761)
A `require()` style import is forbidden.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L6-L6)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L338-L338)
`isDate` is deprecated. Since v4.0.0 - Use {@link types.isDate} instead.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unexpected control character(s) in regular expression: \x00.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \(.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \).

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \{.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \".

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \%.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L43-L43)
Unnecessary escape character: \*.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L56-L56)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L137-L137)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L149-L149)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L160-L160)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L175-L175)[\[6\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L184-L184)[\[7\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L236-L236)[\[8\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L244-L244)[\[9\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L250-L250)[\[10\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L300-L300)[\[11\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1535-L1535)[\[12\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1588-L1588)[\[13\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1737-L1737)[\[14\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1752-L1752)[\[15\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1791-L1791)[\[16\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L82-L82)[\[17\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L132-L132)
Expected an assignment or function call and instead saw an expression.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L97-L97)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L304-L304)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L419-L419)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L441-L441)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L488-L488)[\[6\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L718-L718)[\[7\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1135-L1135)[\[8\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1569-L1569)[\[9\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1605-L1605)[\[10\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1690-L1690)[\[11\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1769-L1769)[\[12\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L46-L46)
Unexpected aliasing of 'this' to local variable.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L256-L256)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L167-L167)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L171-L171)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L187-L187)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L201-L201)[\[6\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L205-L205)[\[7\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L441-L441)[\[8\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L894-L894)
Expected a conditional expression and instead saw an assignment.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1826-L1826)
'err' is already defined.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L137-L137)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L148-L148)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L158-L158)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L168-L168)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L255-L255)
Use sentence case for UI text.



---

### Optional

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L925-L925)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1011-L1011)[\[3\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1154-L1154)[\[4\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1294-L1294)[\[5\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1429-L1429)[\[6\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1555-L1555)[\[7\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1752-L1752)[\[8\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1877-L1877)[\[9\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L1998-L1998)[\[10\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L2108-L2108)
'fatal' is assigned a value but never used.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/deps/encoding/encoding.js#L2162-L2162)
'detectEncoding' is defined but never used.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L1857-L1857)
'err' is defined but never used.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Connection.js#L2106-L2106)[\[2\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/imap/lib/Parser.js#L803-L803)
'e' is defined but never used.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L2-L2)
'DropdownComponent' is defined but never used.

[\[1\]](https://github.com/cedric-uden/obsidian-plugin-email-importer-via-imap/blob/55cb9e3345347f11981072836799432ad664e47d/src/main.ts#L181-L181)
'matchPrefix' is assigned a value but never used.

