---
source: crates/oxc_linter/src/tester.rs
expression: max_lines
---
  ⚠ eslint(max-lines): "File has too many lines (3). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │ var xyz;
 3 │ var xyz;
   · ────────
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (4). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │      that goes to many lines*/
 3 │ ╭─▶ var xy;
 4 │ ╰─▶ var xy;
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (3). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │ var xy;
 3 │ var xy;
   · ───────
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (5). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │     
 3 │ ╭─▶ 
 4 │ │   
 5 │ ╰─▶             var y;
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (8). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var xy;
 3 │ ╭─▶ 
 4 │ │               var xy;
 5 │ │   
 6 │ │                /* a multiline
 7 │ │                really really
 8 │ ╰─▶              long comment*/
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (3). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │             var y;
 3 │             var z;
   · ──────────────────
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (4). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                  spanning multiple lines */
 3 │ ╭─▶             var y;
 4 │ ╰─▶             var z;
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (8). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var xy;
 3 │ ╭─▶ 
 4 │ │               var xy;
 5 │ │   
 6 │ │                /* a multiline
 7 │ │                really really
 8 │ ╰─▶              long comment*/
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (1). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (1). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
 1 │  
   · ─
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (2). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
 1 │ ╭─▶ 
 2 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (1). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
 1 │ A
   · ─
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (2). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
 1 │ ╭─▶ A
 2 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (2). Maximum allowed is 0."
   ╭─[max_lines.tsx:1:1]
 1 │ ╭─▶ A
 2 │ ╰─▶              
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (2). Maximum allowed is 1."
   ╭─[max_lines.tsx:2:1]
 1 │ A
 2 │              
   · ─────────────
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (3). Maximum allowed is 1."
   ╭─[max_lines.tsx:2:1]
 1 │     A
 2 │ ╭─▶ 
 3 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (4). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶             var c;
 4 │ ╰─▶             console.log
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (3). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │             c,
 3 │             x;
   · ───────────────
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (4). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 c,
 3 │ ╭─▶             x;
 4 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (6). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │     
 3 │ ╭─▶             var a = 'a',
 4 │ │               c,
 5 │ │               x;
 6 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (6). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶             var c;
 4 │ │               console.log
 5 │ │               // some block
 6 │ ╰─▶             // comments
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (5). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶             var c;
 4 │ │               console.log
 5 │ ╰─▶             /* block comments */
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (6). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶             var c;
 4 │ │               console.log
 5 │ │               /* block comments */
 6 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (7). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶             var c;
 4 │ │               console.log
 5 │ │               /** block
 6 │ │   
 7 │ ╰─▶              comments */
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (4). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │     
 3 │ ╭─▶ 
 4 │ ╰─▶             // comment
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (8). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 var x
 3 │ ╭─▶ 
 4 │ │   
 5 │ │               var c;
 6 │ │               console.log
 7 │ │   
 8 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (8). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │     
 3 │ ╭─▶ 
 4 │ │               var x
 5 │ │               var c;
 6 │ │               console.log
 7 │ │   
 8 │ ╰─▶             
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (6). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 //
 3 │ ╭─▶             var x
 4 │ │               var c;
 5 │ │               console.log
 6 │ ╰─▶             //
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (9). Maximum allowed is 2."
   ╭─[max_lines.tsx:3:1]
 2 │                 /*hello
 3 │ ╭─▶              world 2 */
 4 │ │               var a,
 5 │ │               b
 6 │ │               // hh
 7 │ │               c,
 8 │ │               e,
 9 │ ╰─▶             f;
   ╰────
  help: Reduce the number of lines in this file

  ⚠ eslint(max-lines): "File has too many lines (11). Maximum allowed is 2."
    ╭─[max_lines.tsx:3:1]
  2 │                 var x = '';
  3 │ ╭─▶ 
  4 │ │               // comment
  5 │ │   
  6 │ │               var b = '',
  7 │ │               c,
  8 │ │               d,
  9 │ │               e
 10 │ │   
 11 │ ╰─▶             // comment
    ╰────
  help: Reduce the number of lines in this file
