Skip to content

Commit 9b9acc3

Browse files
authored
refactor: add missing type annotations to variables (#123)
1 parent f21f7f0 commit 9b9acc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/languages/json-source-code.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ export class JSONSourceCode extends TextSourceCodeBase {
197197
* that ESLint needs to further process the directives.
198198
*/
199199
getDisableDirectives() {
200+
/** @type {Array<FileProblem>} */
200201
const problems = [];
202+
/** @type {Array<Directive>} */
201203
const directives = [];
202204

203205
this.getInlineConfigNodes().forEach(comment => {
@@ -250,7 +252,9 @@ export class JSONSourceCode extends TextSourceCodeBase {
250252
* that ESLint needs to further process the rule configurations.
251253
*/
252254
applyInlineConfig() {
255+
/** @type {Array<FileProblem>} */
253256
const problems = [];
257+
/** @type {Array<{config:{rules:RulesConfig},loc:SourceLocation}>} */
254258
const configs = [];
255259

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

0 commit comments

Comments
 (0)