diff --git a/package.json b/package.json index 99c5f85..bbb0c68 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "license": "Apache-2.0", "dependencies": { "@eslint/core": "^0.14.0", - "@eslint/plugin-kit": "^0.3.1", + "@eslint/plugin-kit": "^0.4.0", "@humanwhocodes/momoa": "^3.3.4", "natural-compare": "^1.4.0" }, diff --git a/src/languages/json-language.js b/src/languages/json-language.js index 22a3222..d511669 100644 --- a/src/languages/json-language.js +++ b/src/languages/json-language.js @@ -153,7 +153,6 @@ export class JSONLanguage { } } - /* eslint-disable class-methods-use-this -- Required to complete interface. */ /** * Creates a new `JSONSourceCode` object from the given information. * @param {File} file The virtual file to create a `JSONSourceCode` object from. @@ -164,7 +163,8 @@ export class JSONLanguage { return new JSONSourceCode({ text: /** @type {string} */ (file.body), ast: parseResult.ast, + lineStart: this.lineStart, + columnStart: this.columnStart, }); } - /* eslint-enable class-methods-use-this -- Required to complete interface. */ }