We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 997b375 commit 7a4ebb6Copy full SHA for 7a4ebb6
1 file changed
server/src/server.ts
@@ -8,6 +8,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
8
9
import type { LinterConfigFile } from '@adguard/aglint/cli';
10
import type {
11
+ LinterConfig,
12
LinterFixCommand,
13
LinterOffsetRange,
14
LinterPositionRange,
@@ -321,8 +322,8 @@ async function lintFile(textDocument: TextDocument): Promise<void> {
321
322
const text = textDocument.getText();
323
324
// Normalize config for linting (this is what will actually be used)
- const normalizedConfig = {
325
- syntax: config.syntax,
+ const normalizedConfig: LinterConfig = {
326
+ platforms: config.platforms,
327
rules: config.rules ?? {},
328
allowInlineConfig: true,
329
};
0 commit comments