I don't know what jsLint thinks but if this is a problem and you need a solution then you can do something like the following:

var blah = function() { return undefined; }; // or just return;

Update : I think, Bergi's guess is right because, on the jslint site in the Required Blocks section :

JSLint expects that if, while, do and for statements will be made with blocks {that is, with statements enclosed in braces}.JavaScript allows an if to be written like this:if (condition) statement;That form is known to contribute to mistakes in projects where many programmers are working on the same code. That is why JSLint expects the use of a block:

if (condition) { statements; }

Experience shows that this form is more resilient.

So, It probably just checks for empty blocks { } and invalidate the blank function.

Answer from The Alpha on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Statements › Empty
Empty statement - JavaScript | MDN
An empty statement is used to provide no statement, although the JavaScript syntax would expect one.
🌐
SitePoint
sitepoint.com › blog › javascript › test for empty values in javascript
Test for Empty Values in Javascript — SitePoint
November 6, 2024 - Testing for empty values in JavaScript is crucial for data validation and maintaining application integrity. The empty() function is a precise and efficient method for this, capable of handling different data types including strings, numbers, booleans, objects, and arrays.
🌐
QuickRef.ME
quickref.me › home › how to create an empty function in javascript - quickref.me
How to create an empty function in JavaScript - QuickRef.ME
In this Article we will go through how to create an empty function only using single line of code in JavaScript. This is a one-line JavaScript code snippet that uses one of the most popular ES6 features => Arrow Function.
🌐
JsNoteClub
jsnoteclub.com › blog › how-to-create-empty-functions-in-javascript
How to Create Empty Functions in JavaScript
December 14, 2023 - In JavaScript, creating empty functions is a common requirement, especially when defining placeholder functions or leaving interfaces for future implementations. An empty function is a type of function that doesn't execute any operations, but it plays a crucial role in code structure and design.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Selection › empty
Selection: empty() method - Web APIs | MDN
The Selection.empty() method removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and nothing selected. When this method is called, a selectionchange event is fired at the document.
Find elsewhere
🌐
Itsourcecode
itsourcecode.com › home › how to create empty function in javascript?
How to create empty function in JavaScript? [Solutions]
June 27, 2023 - Start mastering JavaScript and boost your career prospects today. An “empty” function in JavaScript refers to a function that doesn’t contain any statements or executable code within its function body.
🌐
W3Schools
w3schools.com › jquery › html_empty.asp
jQuery empty() Method
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST
🌐
Latenode
community.latenode.com › other questions › javascript
What's the purpose of empty function declarations? - JavaScript - Latenode Official Community
March 4, 2025 - Hey everyone, I came across some code that had an empty function declaration like this: function emptyFunc() {} I’m a bit confused about why someone would write a function without any content. What’s the point of doin…
🌐
GitHub
gist.github.com › richardkundl › 4c94143d86b53abdc3f4
Javascript is empty function · GitHub
Javascript is empty function. GitHub Gist: instantly share code, notes, and snippets.
🌐
LogRocket
blog.logrocket.com › home › how to check for null, undefined, or empty values in javascript
How to check for null, undefined, or empty values in JavaScript - LogRocket Blog
February 14, 2025 - Checking for null in JavaScript can be achieved like so. Let’s imagine our test data object like this: var testObject = { empty: '', isNull: null, isUndefined: undefined, zero: 0 } > Our null check function looks like this, where we just simply check for null: function isNull(value){ if (value == null){ return true } else{ return false } } To test this function, let’s put some values into it and see how it goes: console.log(` testObject.empty: ${isNull(testObject.empty)} testObject.isNull: ${isNull(testObject.isNull)} testObject.isUndefined: ${isNull(testObject.isUndefined)} zero: ${isNull(testObject.zero)} `) The output is what we would expect, and similar to what other languages would provide: C:\Program Files\nodejs\node.exe .\index.js testObject.empty: false testObject.isNull: true testObject.isUndefined: true zero: false ·
🌐
Team Treehouse
teamtreehouse.com › community › how-do-you-add-an-empty-function-as-a-parameter
How do you add an empty function as a parameter? (Example) | Treehouse Community
January 2, 2017 - JavaScript JavaScript and the DOM (Retiring) Responding to User Interaction Adding an Event Listener ... I'm stuck here. I don't know how to add the empty function.
🌐
Linux Hint
linuxhint.com › empty-functions-in-javascript
Empty Functions in JavaScript
Linux Hint LLC, [email protected] 1210 Kelly Park Circle, Morgan Hill, CA 95037 Privacy Policy and Terms of Use
🌐
Codecademy
codecademy.com › forum_questions › 4f85ee907631630003009f78
1.1 Is there a difference between empty functions and empty object constructors? | Codecademy
In JavaScript, every function can be an object constructor, so there’s really no difference between an “empty function” and an “empty constructor”. The definitions from the glossary are compatible, because “this.p = q;“ is simply a statement.