We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I would like to suggest a really small but important for JSLint users. I refer to this error in JSLint : https://jslinterrors.com/move-the-invocation-into-the-parens-that-contain-the-function
You have this :
var SkinnedMesh = (function (THREE) { var SkinnedMesh = function SkinnedMesh() { //... }; SkinnedMesh.prototype.update = function () { //... }; return SkinnedMesh; })(THREE);
But to be JSLint valid, it should be :
var SkinnedMesh = (function (THREE) { var SkinnedMesh = function SkinnedMesh() { //... }; SkinnedMesh.prototype.update = function () { //... }; return SkinnedMesh; }(THREE));
As you can see, it's a small improvement but it's important OMHO.
The text was updated successfully, but these errors were encountered:
Hi @MathRobin thanks for checking out the style guide!
This is a style choice that we made at Airbnb. Feel free to use the JSLint/Crockford style IIFE, the important part is consistency in the codebase.
For more info: #85, #21
🍻
Sorry, something went wrong.
@hshoff : Is -there any options config setting we could use to disable this warning ?
@shenoydev you can certainly override the eslint rule, just like any other rule can be overridden.
That said, IIFEs shouldn't be needed in a world with modules, so this ideally shouldn't even come up :-)
No branches or pull requests
Hi,
I would like to suggest a really small but important for JSLint users. I refer to this error in JSLint : https://jslinterrors.com/move-the-invocation-into-the-parens-that-contain-the-function
You have this :
But to be JSLint valid, it should be :
As you can see, it's a small improvement but it's important OMHO.
The text was updated successfully, but these errors were encountered: