]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/keyword-spacing.js
import 7.12.1 upstream release
[pve-eslint.git] / eslint / lib / rules / keyword-spacing.js
index 99979a32a5bbf7a3354f883494ad7bffd780a627..913cf4682f903acde73b0f1075a96cbd395cdbce 100644 (file)
@@ -126,7 +126,7 @@ module.exports = {
                 !sourceCode.isSpaceBetweenTokens(prevToken, token)
             ) {
                 context.report({
-                    loc: token.loc.start,
+                    loc: token.loc,
                     messageId: "expectedBefore",
                     data: token,
                     fix(fixer) {
@@ -178,7 +178,7 @@ module.exports = {
                 !sourceCode.isSpaceBetweenTokens(token, nextToken)
             ) {
                 context.report({
-                    loc: token.loc.start,
+                    loc: token.loc,
                     messageId: "expectedAfter",
                     data: token,
                     fix(fixer) {