yyx990803 / semi

To semicolon or not to semicolon; that is the question
305 stars 15 forks source link

Make leading option be true by default? #5

Open hax opened 9 years ago

hax commented 9 years ago

Could leading option default to true?

There is a common case -- IIFE which need special treatment:

(function () {
...
}());

If we just remove the trailing semicolon, concat of multiple js may be break. So I think we'd better make leading option be true by default.

fritx commented 9 years ago

though i am not sure but :+1: btw, i just made a gulpplugin for this :P