== Why is this an issue? include::../description.adoc[] === Exceptions This rule ignores Immediately Invoked Function Expressions (IIFE), which are functions that are created and invoked without ever being assigned a name. [source,javascript] ---- (function () { // Ignored by this rule function open() { // Classic function declaration; not ignored // ... } function read() { // ... } function readlines() { // ... } })(); ---- This rule also ignores React Functional Components, which are JavaScript functions named with a capital letter and returning a React element (JSX syntax). [source,javascript] ---- function Welcome() { const greeting = 'Hello, World!'; // ... return (
{greeting}