Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (19 sloc) 772 Bytes

space-return-throw-case: require spaces after return, throw, and case keywords

(removed) This rule was removed in ESLint v2.0 and replaced by the keyword-spacing rule.

(fixable) The --fix option on the command line automatically fixed problems reported by this rule.

Require spaces following return, throw, and case.

Rule Details

Examples of incorrect code for this rule:

/*eslint space-return-throw-case: "error"*/


function f(){ return-a; }

switch(a){ case'a': break; }

Examples of correct code for this rule:

/*eslint space-return-throw-case: "error"*/

throw {a: 0};

function f(){ return -a; }

switch(a){ case 'a': break; }
You can’t perform that action at this time.