Spotted by @sokra, getter patterns currently don't detect with trailing commas:
Works:
Object.defineProperty(exports, 'a', {
enumerable: true,
get: function () {
return q.p;
}
});
Doesn't work:
Object.defineProperty(exports, 'a', {
enumerable: true,
get: function () {
return q.p;
},
});
This is a trivial fix, but likely misses the cutoff for stability at this point.
These were designed mostly to catch Babel / TypeScript build outputs so in most cases we should be ok without this support though since it would only affect users explicitly writing in this style where it is not generated code.
Spotted by @sokra, getter patterns currently don't detect with trailing commas:
Works:
Doesn't work:
This is a trivial fix, but likely misses the cutoff for stability at this point.
These were designed mostly to catch Babel / TypeScript build outputs so in most cases we should be ok without this support though since it would only affect users explicitly writing in this style where it is not generated code.