Require spaces following return
, throw
, and case
(space-return-throw-case)
Require spaces following return
, throw
, and case
.
Rule Details
The following patterns are considered warnings:
throw{a:0}
function f(){ return-a; }
switch(a){ case'a': break; }
The following patterns are not considered warnings:
throw {a: 0};
function f(){ return -a; }
switch(a){ case 'a': break; }
Version
This rule was introduced in ESLint 0.1.4.