Skip to content

Commit ed2b81b

Browse files
authored
refactor: add missing type annotations to variables (eslint#206)
1 parent 79e06c6 commit ed2b81b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/languages/css-source-code.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export class CSSSourceCode extends TextSourceCodeBase {
151151
* that ESLint needs to further process the directives.
152152
*/
153153
getDisableDirectives() {
154+
/** @type {Array<FileProblem>} */
154155
const problems = [];
156+
/** @type {Array<Directive>} */
155157
const directives = [];
156158

157159
this.getInlineConfigNodes().forEach(comment => {
@@ -204,7 +206,9 @@ export class CSSSourceCode extends TextSourceCodeBase {
204206
* that ESLint needs to further process the rule configurations.
205207
*/
206208
applyInlineConfig() {
209+
/** @type {Array<FileProblem>} */
207210
const problems = [];
211+
/** @type {Array<{config:{rules:RulesConfig},loc:SourceLocation}>} */
208212
const configs = [];
209213

210214
this.getInlineConfigNodes().forEach(comment => {

0 commit comments

Comments
 (0)