@phoenix-plugin-registry/com.github.mrmeku.closure-linter
Version:
Lint javascript files according to the Google style guide and automatically fix linting errors.
22 lines (18 loc) • 343 B
JavaScript
// Correct dot placement:
var x = window.some()
.method()
.calls();
// Wrong dots:
window
.some()
// With a comment in between.
.method()
.calls();
// Wrong plus operator:
var y = 'hello' +
'world' +
// With a comment in between.
'!';
// Correct plus operator (untouched):
var y = 'hello' +
'world';