@graphql-eslint/eslint-plugin 3.14.2 → 3.14.3-alpha-20221227235450-493f670
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/processor.js +3 -2
- package/esm/processor.js +3 -2
- package/package.json +1 -1
package/cjs/processor.js
CHANGED
@@ -79,8 +79,9 @@ exports.processor = {
|
|
79
79
|
message.fix.range[1] += offset;
|
80
80
|
}
|
81
81
|
for (const suggestion of message.suggestions || []) {
|
82
|
-
|
83
|
-
suggestion.fix.range
|
82
|
+
// DO NOT mutate until https://github.com/eslint/eslint/issues/16716
|
83
|
+
const [start, end] = suggestion.fix.range;
|
84
|
+
suggestion.fix.range = [start + offset, end + offset];
|
84
85
|
}
|
85
86
|
}
|
86
87
|
}
|
package/esm/processor.js
CHANGED
@@ -76,8 +76,9 @@ export const processor = {
|
|
76
76
|
message.fix.range[1] += offset;
|
77
77
|
}
|
78
78
|
for (const suggestion of message.suggestions || []) {
|
79
|
-
|
80
|
-
suggestion.fix.range
|
79
|
+
// DO NOT mutate until https://github.com/eslint/eslint/issues/16716
|
80
|
+
const [start, end] = suggestion.fix.range;
|
81
|
+
suggestion.fix.range = [start + offset, end + offset];
|
81
82
|
}
|
82
83
|
}
|
83
84
|
}
|