Skip to content

Commit 7a4ebb6

Browse files
committed
fix type error
1 parent 997b375 commit 7a4ebb6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

server/src/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
88

99
import type { LinterConfigFile } from '@adguard/aglint/cli';
1010
import type {
11+
LinterConfig,
1112
LinterFixCommand,
1213
LinterOffsetRange,
1314
LinterPositionRange,
@@ -321,8 +322,8 @@ async function lintFile(textDocument: TextDocument): Promise<void> {
321322
const text = textDocument.getText();
322323

323324
// Normalize config for linting (this is what will actually be used)
324-
const normalizedConfig = {
325-
syntax: config.syntax,
325+
const normalizedConfig: LinterConfig = {
326+
platforms: config.platforms,
326327
rules: config.rules ?? {},
327328
allowInlineConfig: true,
328329
};

0 commit comments

Comments
 (0)