Well, sort of.
If you check the ESLint API, the verify()
will return a range
key:
{
fatal: false,
ruleId: "semi",
severity: 2,
line: 1,
column: 23,
message: "Expected a semicolon.",
fix: {
range: [1, 15], // <---- this
text: ";"
}
}
The string indexes are the same — they are also placed in an array — the only difference is ESLint explicitly tells what to insert using a separate key.
If ESLint marked a finding like this:
{
range: [1, 15],
text: ";"
}
Ranges would mark it shorter:
[[1, 15, ";"]];
Very similar!