chore: enforce consistent coding style and semicolon removal
- Update ESLint configuration to enforce no semicolons (`semi: ['error', 'never']`) - Fix all instances of semicolons in `*.ts` files to align with style rules - Adjust related ESLint rules for `no-extra-semi` - Simplify unnecessary semicolon patterns in global variable assignments
This commit is contained in:
parent
cfd74adcb3
commit
797839c135
5 changed files with 207 additions and 207 deletions
|
|
@ -1279,7 +1279,7 @@ export class NaturalLanguageProcessor {
|
|||
}
|
||||
|
||||
if (options?.includeMetadata) {
|
||||
;(entity as any).metadata = {
|
||||
(entity as any).metadata = {
|
||||
pattern: pattern.source,
|
||||
contextBefore: text.substring(Math.max(0, match.index - 20), match.index),
|
||||
contextAfter: text.substring(match.index + match[0].length, Math.min(text.length, match.index + match[0].length + 20))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue