lint: Replace 'return undefined;' with 'return;'.

Also adds a custom rule to eslint. Since the recommended way of extending
eslint is to create plugins as standalone npm packages, the separate rule
is published as 'eslint-plugins-empty-returns'.

Fixes #8669.
This commit is contained in:
Rohitt Vashishtha
2018-03-13 17:34:16 +05:30
committed by showell
parent 7ce139a798
commit b22e8dc2b7
23 changed files with 58 additions and 49 deletions

View File

@@ -6,7 +6,7 @@ var ls = {
try {
return JSON.parse(str);
} catch (err) {
return undefined;
return;
}
},