From 885303747fe0e955fe3a5f58290e58f9453f90e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Fri, 18 Jul 2025 17:31:32 +0900 Subject: [PATCH] refactor: add missing type annotations to variables --- src/languages/css-source-code.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/languages/css-source-code.js b/src/languages/css-source-code.js index babece8f..fb175ba8 100644 --- a/src/languages/css-source-code.js +++ b/src/languages/css-source-code.js @@ -151,7 +151,9 @@ export class CSSSourceCode extends TextSourceCodeBase { * that ESLint needs to further process the directives. */ getDisableDirectives() { + /** @type {Array} */ const problems = []; + /** @type {Array} */ const directives = []; this.getInlineConfigNodes().forEach(comment => { @@ -204,7 +206,9 @@ export class CSSSourceCode extends TextSourceCodeBase { * that ESLint needs to further process the rule configurations. */ applyInlineConfig() { + /** @type {Array} */ const problems = []; + /** @type {Array<{config:{rules:RulesConfig},loc:SourceLocation}>} */ const configs = []; this.getInlineConfigNodes().forEach(comment => {