]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/rules/max-lines-per-function.md
update to 7.1.0 sources
[pve-eslint.git] / eslint / docs / rules / max-lines-per-function.md
index 22ffea79f41329efaf090fa9915a6f3f4d92bfe1..d3b13615b42f28ed770b0e0fe25ff2eef8611e10 100644 (file)
@@ -165,6 +165,10 @@ Examples of **incorrect** code for this rule with the `{ "IIFEs": true }` option
 (function(){
     var x = 0;
 }());
+
+(() => {
+    var x = 0;
+})();
 ```
 
 Examples of **correct** code for this rule with the `{ "IIFEs": true }` option:
@@ -174,6 +178,10 @@ Examples of **correct** code for this rule with the `{ "IIFEs": true }` option:
 (function(){
     var x = 0;
 }());
+
+(() => {
+    var x = 0;
+})();
 ```
 
 ## When Not To Use It