The best we have at the moment is setting one-var to "never". If that doesn't suit your needs, please open an issue and describe what you're looking for.
-N On Fri, Dec 11, 2015 at 9:25 AM James Mortemore <[email protected]> wrote: > one-var only caters for single declaration scopes as far as I can see. > requireMultipleVarDecl allows for multiple variable declarations, but > forces them into the same var block > E.g. > > Valid: > > var a, b, c; > > console.log('hello'); > > var d, e; > > Invalid: > var a; > var b; > var c; > > console.log('hello'); > > var d; > var e; > > > On Friday, December 11, 2015 at 5:20:27 PM UTC, Peter deHaan wrote: > >> I think you want the http://eslint.org/docs/rules/one-var.html rule. >> >> On Friday, December 11, 2015, James Mortemore <[email protected]> >> wrote: >> >>> I'm starting to migrate from JSCS/JSHint over to ESLint. >>> >>> One thing I'm having trouble trying to find is JSCS's equivalent of >>> requireMultipleVarDecl >>> >>> http://jscs.info/rule/requireMultipleVarDecl >>> >>> >>> Is there an equivalent of such a rule in ESLint? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "ESLint" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "ESLint" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
