| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This rule ensures that no unnecessary semicolon after function
declarations is allowed, e.g. this will error:
function x() {
// code
};
See eslint/eslint#3075 regarding body-less loops.
|
Decided to close this one in favor of #2205. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The no-extra-semi rule was requested multiple times, so here it is:
The big issue here were bodyless while and for loops. I took the time to refactor two cases in lib to hopefully be more readable. There were a few cases in test that do things like call a function until it returns false, where I opted to just put an empty body with a comment. If these are too ugly, we can wait on eslint/eslint#3075 for a fix.
cc: @targos