Skip to content

Commit 8f767f1

Browse files
committed
fix linting
1 parent 4a64eb6 commit 8f767f1

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

src/processors/gridsetProcessor.ts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ class GridsetProcessor extends BaseProcessor {
10721072

10731073
// Parse all command types from Grid3 and create semantic actions
10741074
let semanticAction: AACSemanticAction | undefined;
1075-
let legacyAction: any = null;
1075+
let _legacyAction: any = null;
10761076
// infer action type implicitly from commands; no explicit enum needed
10771077
let navigationTarget: string | undefined;
10781078
let detectedCommands: any[] = []; // Store detected command metadata
@@ -1235,7 +1235,7 @@ class GridsetProcessor extends BaseProcessor {
12351235
targetPageId: targetGridId,
12361236
},
12371237
};
1238-
legacyAction = {
1238+
_legacyAction = {
12391239
type: 'NAVIGATE',
12401240
targetPageId: targetGridId,
12411241
};
@@ -1260,7 +1260,7 @@ class GridsetProcessor extends BaseProcessor {
12601260
message: 'Go back',
12611261
},
12621262
};
1263-
legacyAction = {
1263+
_legacyAction = {
12641264
type: 'GO_BACK',
12651265
};
12661266
}
@@ -1285,7 +1285,7 @@ class GridsetProcessor extends BaseProcessor {
12851285
message: 'Go home',
12861286
},
12871287
};
1288-
legacyAction = {
1288+
_legacyAction = {
12891289
type: 'GO_HOME',
12901290
};
12911291
}
@@ -1389,7 +1389,7 @@ class GridsetProcessor extends BaseProcessor {
13891389
message: 'Speak text',
13901390
},
13911391
};
1392-
legacyAction = {
1392+
_legacyAction = {
13931393
type: 'SPEAK',
13941394
unit: speakUnit,
13951395
moveCaret: moveCaret ? parseInt(String(moveCaret)) : undefined,
@@ -1421,7 +1421,7 @@ class GridsetProcessor extends BaseProcessor {
14211421
message: insertText,
14221422
},
14231423
};
1424-
legacyAction = {
1424+
_legacyAction = {
14251425
type: 'INSERT_TEXT',
14261426
text: insertText,
14271427
};
@@ -1445,7 +1445,7 @@ class GridsetProcessor extends BaseProcessor {
14451445
message: 'Delete word',
14461446
},
14471447
};
1448-
legacyAction = {
1448+
_legacyAction = {
14491449
type: 'DELETE_WORD',
14501450
};
14511451
}
@@ -1467,7 +1467,7 @@ class GridsetProcessor extends BaseProcessor {
14671467
message: 'Delete character',
14681468
},
14691469
};
1470-
legacyAction = {
1470+
_legacyAction = {
14711471
type: 'DELETE_CHARACTER',
14721472
};
14731473
}
@@ -1490,7 +1490,7 @@ class GridsetProcessor extends BaseProcessor {
14901490
message: 'Clear text',
14911491
},
14921492
};
1493-
legacyAction = {
1493+
_legacyAction = {
14941494
type: 'CLEAR_TEXT',
14951495
};
14961496
}
@@ -1515,7 +1515,7 @@ class GridsetProcessor extends BaseProcessor {
15151515
message: letter,
15161516
},
15171517
};
1518-
legacyAction = {
1518+
_legacyAction = {
15191519
type: 'INSERT_LETTER',
15201520
letter,
15211521
};
@@ -1543,7 +1543,7 @@ class GridsetProcessor extends BaseProcessor {
15431543
message: 'Settings action',
15441544
},
15451545
};
1546-
legacyAction = {
1546+
_legacyAction = {
15471547
type: 'SETTINGS',
15481548
indicatorEnabled: getParam('indicatorenabled') === '1',
15491549
settingsAction: getParam('action'),
@@ -1570,7 +1570,7 @@ class GridsetProcessor extends BaseProcessor {
15701570
message: 'Auto content',
15711571
},
15721572
};
1573-
legacyAction = {
1573+
_legacyAction = {
15741574
type: 'AUTO_CONTENT',
15751575
autoContentType: getParam('autocontenttype'),
15761576
};
@@ -1597,10 +1597,7 @@ class GridsetProcessor extends BaseProcessor {
15971597
message: 'Unknown command',
15981598
},
15991599
};
1600-
legacyAction = {
1601-
type: 'SPEAK',
1602-
parameters: { commandId, ...allParams },
1603-
};
1600+
// legacy action not needed for unknown commands
16041601
}
16051602
break;
16061603
}

src/utilities/analytics/morphology/grid3VerbsParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class Grid3VerbsParser {
391391
let appliedRule: ParsedRuleSet | undefined;
392392

393393
if (verb.ruleId && ruleSets.has(verb.ruleId)) {
394-
appliedRule = ruleSets.get(verb.ruleId)!;
394+
appliedRule = ruleSets.get(verb.ruleId) as ParsedRuleSet;
395395
} else if (ruleSets.size > 0) {
396396
appliedRule = ruleSets.values().next().value;
397397
}
@@ -442,7 +442,7 @@ export class Grid3VerbsParser {
442442
let appliedRule: ParsedRuleSet | undefined;
443443

444444
if (verb.ruleId && ruleSets.has(verb.ruleId)) {
445-
appliedRule = ruleSets.get(verb.ruleId)!;
445+
appliedRule = ruleSets.get(verb.ruleId) as ParsedRuleSet;
446446
} else if (ruleSets.size > 0) {
447447
appliedRule = ruleSets.values().next().value;
448448
}

test/grid3VerbsParser.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
12
import { Grid3VerbsParser } from '../src/utilities/analytics/morphology/grid3VerbsParser';
23
import { join } from 'path';
34

test/wordFormGenerator.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
12
import { WordFormGenerator } from '../src/utilities/analytics/morphology/wordFormGenerator';
23
import { MorphologyEngine } from '../src/utilities/analytics/morphology/engine';
34
import { Grid3VerbsParser } from '../src/utilities/analytics/morphology/grid3VerbsParser';

0 commit comments

Comments
 (0)