Repository: eslint/eslint
Pull request #15370 (2021-11-29 01:05:45)

docs: update CLA info
<!--
    Thank you for contributing!

    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).
-->

#### Prerequisites checklist

- [x] I have read the [contributing guidelines](https://github.com/eslint/eslint/blob/HEAD/CONTRIBUTING.md).

#### What is the purpose of this pull request? (put an "X" next to an item)

<!--
    The following template is intentionally not a markdown checkbox list for the reasons
    explained in https://github.com/eslint/eslint/pull/12848#issuecomment-580302888
-->

[x] Documentation update
[ ] Bug fix ([template](https://raw.githubusercontent.com/eslint/eslint/HEAD/templates/bug-report.md))
[ ] New rule ([template](https://raw.githubusercontent.com/eslint/eslint/HEAD/templates/rule-proposal.md))
[ ] Changes an existing rule ([template](https://raw.githubusercontent.com/eslint/eslint/HEAD/templates/rule-change-proposal.md))
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

<!--
    If the item you've checked above has a template, please paste the template questions below and answer them. (If this pull request is addressing an issue, you can just paste a link to the issue here instead.)
-->

<!--
    Please ensure your pull request is ready:

    - Read the pull request guide (https://eslint.org/docs/developer-guide/contributing/pull-requests)
    - Include tests for this change
    - Update documentation for this change (if appropriate)
-->

<!--
    The following is required for all pull requests:
-->

#### What changes did you make? (Give an overview)

Update CLA info to the latest.

Fix https://github.com/eslint/eslint/issues/15367

#### Is there anything you'd like reviewers to focus on?
No

nzakas: Okay, it looks like EasyCLA doesn’t have a link to directly sign. The best we can do is point people to https://cla.openjsf.org/ which has a copy of the CLA text.

We probably want to change the docs to just say you’ll be asked to sign our CLA when you send your first pull request but you can preview the CLA at this URL. 

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index abcfbb41c..d1190eb26 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,28 @@
+v8.4.1 - December 6, 2021
+
+* [`234e3d9`](https://github.com/eslint/eslint/commit/234e3d98eeab8956cefb14c982b9c348c21bb2d9) fix: revert changes to reported locations in max-lines-per-function (#15397) (Milos Djermanovic)
+* [`fa4d483`](https://github.com/eslint/eslint/commit/fa4d4830a0e77f92154079ada17ffb893ce64232) docs: fix typo in example for `sort-keys` rule (#15393) (Nitin Kumar)
+
+v8.4.0 - December 3, 2021
+
+* [`efede90`](https://github.com/eslint/eslint/commit/efede90d59edc5cca9cd739df7e98f1ff00ca37d) chore: upgrade @eslint/eslintrc@1.0.5 (#15389) (Milos Djermanovic)
+* [`5771663`](https://github.com/eslint/eslint/commit/5771663e8d3e86fec9454ee0af439c6989506bf3) feat: add `allowReserved` parser option (#15387) (Milos Djermanovic)
+* [`32ac37a`](https://github.com/eslint/eslint/commit/32ac37a76b2e009a8f106229bc7732671d358189) feat: Flat config support in Linter (refs #13481) (#15185) (Nicholas C. Zakas)
+* [`54deec5`](https://github.com/eslint/eslint/commit/54deec56bc25d516becaf767769ee7543f491d62) docs: update integrations.md (#15380) (Vlad Sholokhov)
+* [`d041f34`](https://github.com/eslint/eslint/commit/d041f345cdf0306f15faa2f305fe1d21ef137eb1) feat: Treat Class/New Expressions as truthy in no-constant-condition (#15326) (Jordan Eldredge)
+* [`8f44cf5`](https://github.com/eslint/eslint/commit/8f44cf505765b663e371412ab57f0f1dbbe78513) feat: report only lines that exceed the limit in max-lines-per-function (#15140) (Sneh Khatri)
+* [`fa0423a`](https://github.com/eslint/eslint/commit/fa0423af7f8453f6c97b915b3b026f258b76a600) docs: fix typo in PR template (#15365) (Nitin Kumar)
+* [`0b8c846`](https://github.com/eslint/eslint/commit/0b8c846c77234125fbb211980bc1e62dc8791513) chore: fix update-readme to avoid multiple consecutive blank lines (#15375) (Milos Djermanovic)
+* [`808ad35`](https://github.com/eslint/eslint/commit/808ad35f204c838cd5eb8d766807dc43692f42f9) feat: pass cwd to formatters (refs eslint/rfcs#57) (#13392) (Toru Nagashima)
+* [`94b2a8b`](https://github.com/eslint/eslint/commit/94b2a8b3d1f7d139dd6b06216a64727b7d5f009b) chore: Use default Chromium binary in M1 Mac tests (#15371) (Brandon Mills)
+* [`4940cc5`](https://github.com/eslint/eslint/commit/4940cc5c4903a691fe51d409137dd573c4c7706e) fix: mark --rulesdir option as deprecated in CLI docs (#15310) (Kevin Partington)
+* [`e233920`](https://github.com/eslint/eslint/commit/e233920857e282ba22116ad5f1dcc6dfabc8ef5b) docs: enable a few more markdownlint rules and fix violations (#15368) (Bryan Mishkin)
+* [`ba58d94`](https://github.com/eslint/eslint/commit/ba58d94cb51d4d2644c024446d5750eaf4853129) ci: use node `v16` for Verify Files (#15364) (Nitin Kumar)
+* [`632176d`](https://github.com/eslint/eslint/commit/632176dc43180ea4e7f99da429fee3ee3814a04d) docs: Dedent needlessly indented example in getter-return docs (#15363) (Jordan Eldredge)
+* [`4497e88`](https://github.com/eslint/eslint/commit/4497e880248c24dc19eea8a5466555b847c0c7eb) docs: Update release notes blog post template (#15285) (Nicholas C. Zakas)
+* [`f1b7499`](https://github.com/eslint/eslint/commit/f1b7499a5162d3be918328ce496eb80692353a5a) feat: support async formatters (#15243) (MO)
+* [`1e32ee5`](https://github.com/eslint/eslint/commit/1e32ee591e978188b121604d0af9cbc04a50a3b5) chore: add jsdoc type annotation to rules (#15291) (Bryan Mishkin)
+
 v8.3.0 - November 21, 2021
 
 * [`60b0a29`](https://github.com/eslint/eslint/commit/60b0a292efd1b9cdc318b1e88a0cb7bbf14860b1) feat: add `allowProperties` option to require-atomic-updates (#15238) (Milos Djermanovic)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8f2246f3b..40163d868 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -19,7 +19,7 @@ To report a security vulnerability in ESLint, please use our [HackerOne program]
 
 ## Contributing Code
 
-Please sign our [Contributor License Agreement](https://cla.js.foundation/eslint/eslint) and read over the [Pull Request Guidelines](https://eslint.org/docs/developer-guide/contributing/pull-requests).
+In order to submit code or documentation to an ESLint project, you’ll be asked to sign our CLA when you send your first pull request. (Read more about the Open JS Foundation CLA process at <https://cla.openjsf.org/>.) Also, please read over the [Pull Request Guidelines](https://eslint.org/docs/developer-guide/contributing/pull-requests).
 
 ## Full Documentation
 
diff --git a/docs/rules/class-methods-use-this.md b/docs/rules/class-methods-use-this.md
index 7e25b069a..518a891d3 100644
--- a/docs/rules/class-methods-use-this.md
+++ b/docs/rules/class-methods-use-this.md
@@ -129,7 +129,7 @@ class A {
 }
 ```
 
-## enforceForClassFields
+### enforceForClassFields
 
 ```js
 "class-methods-use-this": [<enabled>, { "enforceForClassFields": true | false }]
diff --git a/docs/rules/sort-keys.md b/docs/rules/sort-keys.md
index 937a7da81..bf4813ec4 100644
--- a/docs/rules/sort-keys.md
+++ b/docs/rules/sort-keys.md
@@ -197,7 +197,7 @@ let obj = {
 Examples of **correct** code for the `{minKeys: 4}` option:
 
 ```js
-/*eslint sort-keys: ["error", "asc", {minKeys: 4}]*//
+/*eslint sort-keys: ["error", "asc", {minKeys: 4}]*/
 /*eslint-env es6*/
 
 // 3 keys
diff --git a/lib/rules/max-lines-per-function.js b/lib/rules/max-lines-per-function.js
index c1b945ca1..5985a739e 100644
--- a/lib/rules/max-lines-per-function.js
+++ b/lib/rules/max-lines-per-function.js
@@ -80,7 +80,7 @@ module.exports = {
             OPTIONS_OR_INTEGER_SCHEMA
         ],
         messages: {
-            exceed: "{{name}} has exceeded the limit of lines allowed by {{linesExceed}}. Maximum allowed number of lines per function is {{maxLines}}."
+            exceed: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."
         }
     },
 
@@ -170,26 +170,18 @@ module.exports = {
                 return;
             }
             let lineCount = 0;
-            let comments = 0;
-            let blankLines = 0;
 
             for (let i = node.loc.start.line - 1; i < node.loc.end.line; ++i) {
                 const line = lines[i];
 
                 if (skipComments) {
                     if (commentLineNumbers.has(i + 1) && isFullLineComment(line, i + 1, commentLineNumbers.get(i + 1))) {
-                        if (lineCount <= maxLines) {
-                            comments++;
-                        }
                         continue;
                     }
                 }
 
                 if (skipBlankLines) {
                     if (line.match(/^\s*$/u)) {
-                        if (lineCount <= maxLines) {
-                            blankLines++;
-                        }
                         continue;
                     }
                 }
@@ -199,21 +191,11 @@ module.exports = {
 
             if (lineCount > maxLines) {
                 const name = upperCaseFirst(astUtils.getFunctionNameWithKind(funcNode));
-                const linesExceed = lineCount - maxLines;
-
-                const loc = {
-                    start: {
-                        line: node.loc.start.line + maxLines + (comments + blankLines),
-                        column: 0
-                    },
-                    end: node.loc.end
-                };
 
                 context.report({
                     node,
-                    loc,
                     messageId: "exceed",
-                    data: { name, linesExceed, maxLines }
+                    data: { name, lineCount, maxLines }
                 });
             }
         }
diff --git a/package.json b/package.json
index 6a2b8650a..43a7138fc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "eslint",
-  "version": "8.3.0",
+  "version": "8.4.1",
   "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
   "description": "An AST-based pattern checker for JavaScript.",
   "bin": {


Test patch:
diff --git a/tests/lib/rules/max-lines-per-function.js b/tests/lib/rules/max-lines-per-function.js
index 74acab2af..ba01206f4 100644
--- a/tests/lib/rules/max-lines-per-function.js
+++ b/tests/lib/rules/max-lines-per-function.js
@@ -199,14 +199,7 @@ if ( x === y ) {
             code: "function name() {\n}",
             options: [1],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 1, maxLines: 1 },
-                    line: 2,
-                    column: 1,
-                    endLine: 2,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 2, maxLines: 1 } }
             ]
         },
 
@@ -215,14 +208,7 @@ if ( x === y ) {
             code: "var func = function() {\n}",
             options: [1],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function", linesExceed: 1, maxLines: 1 },
-                    line: 2,
-                    column: 1,
-                    endLine: 2,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function", lineCount: 2, maxLines: 1 } }
             ]
         },
 
@@ -231,14 +217,7 @@ if ( x === y ) {
             code: "const bar = () => {\nconst x = 2 + 1;\nreturn x;\n}",
             options: [3],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Arrow function", linesExceed: 1, maxLines: 3 },
-                    line: 4,
-                    column: 1,
-                    endLine: 4,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Arrow function", lineCount: 4, maxLines: 3 } }
             ]
         },
 
@@ -247,14 +226,7 @@ if ( x === y ) {
             code: "const bar = () =>\n 2",
             options: [1],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Arrow function", linesExceed: 1, maxLines: 1 },
-                    line: 2,
-                    column: 1,
-                    endLine: 2,
-                    endColumn: 3
-                }
+                { messageId: "exceed", data: { name: "Arrow function", lineCount: 2, maxLines: 1 } }
             ]
         },
 
@@ -263,14 +235,7 @@ if ( x === y ) {
             code: `() => {${"foo\n".repeat(60)}}`,
             options: [{}],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Arrow function", linesExceed: 11, maxLines: 50 },
-                    line: 51,
-                    column: 1,
-                    endLine: 61,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Arrow function", lineCount: 61, maxLines: 50 } }
             ]
         },
 
@@ -279,14 +244,7 @@ if ( x === y ) {
             code: "function name() {\nvar x = 5;\n\t\n \n\nvar x = 2;\n}",
             options: [{ max: 6, skipComments: false, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 1, maxLines: 6 },
-                    line: 7,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 7, maxLines: 6 } }
             ]
         },
 
@@ -295,14 +253,7 @@ if ( x === y ) {
             code: "function name() {\r\nvar x = 5;\r\n\t\r\n \r\n\r\nvar x = 2;\r\n}",
             options: [{ max: 6, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 1, maxLines: 6 },
-                    line: 7,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 7, maxLines: 6 } }
             ]
         },
 
@@ -311,14 +262,7 @@ if ( x === y ) {
             code: "function name() {\nvar x = 5;\n\t\n \n\nvar x = 2;\n}",
             options: [{ max: 2, skipComments: true, skipBlankLines: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 2, maxLines: 2 },
-                    line: 6,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 4, maxLines: 2 } }
             ]
         },
 
@@ -327,14 +271,7 @@ if ( x === y ) {
             code: "function name() {\r\nvar x = 5;\r\n\t\r\n \r\n\r\nvar x = 2;\r\n}",
             options: [{ max: 2, skipComments: true, skipBlankLines: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 2, maxLines: 2 },
-                    line: 6,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 4, maxLines: 2 } }
             ]
         },
 
@@ -343,14 +280,7 @@ if ( x === y ) {
             code: "function name() { // end of line comment\nvar x = 5; /* mid line comment */\n\t// single line comment taking up whole line\n\t\n \n\nvar x = 2;\n}",
             options: [{ max: 6, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 1, maxLines: 6 },
-                    line: 8,
-                    column: 1,
-                    endLine: 8,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 7, maxLines: 6 } }
             ]
         },
 
@@ -359,14 +289,7 @@ if ( x === y ) {
             code: "function name() { // end of line comment\nvar x = 5; /* mid line comment */\n\t// single line comment taking up whole line\n\t\n \n\nvar x = 2;\n}",
             options: [{ max: 1, skipComments: true, skipBlankLines: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 3, maxLines: 1 },
-                    line: 2,
-                    column: 1,
-                    endLine: 8,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 4, maxLines: 1 } }
             ]
         },
 
@@ -375,14 +298,7 @@ if ( x === y ) {
             code: "function name() { // end of line comment\nvar x = 5; /* mid line comment */\n\t// single line comment taking up whole line\n\t\n \n\nvar x = 2;\n}",
             options: [{ max: 1, skipComments: false, skipBlankLines: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 4, maxLines: 1 },
-                    line: 2,
-                    column: 1,
-                    endLine: 8,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'name'", lineCount: 5, maxLines: 1 } }
             ]
         },
 
@@ -397,14 +313,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'foo'", linesExceed: 5, maxLines: 2 },
-                    line: 3,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'foo'", lineCount: 7, maxLines: 2 } }
             ]
         },
 
@@ -419,14 +328,7 @@ function
 ()`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false, IIFEs: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function", linesExceed: 2, maxLines: 2 },
-                    line: 4,
-                    column: 1,
-                    endLine: 5,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function", lineCount: 4, maxLines: 2 } }
             ]
         },
 
@@ -444,14 +346,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 9, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'parent'", linesExceed: 1, maxLines: 9 },
-                    line: 10,
-                    column: 1,
-                    endLine: 10,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'parent'", lineCount: 10, maxLines: 9 } }
             ]
         },
 
@@ -469,22 +364,8 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'parent'", linesExceed: 8, maxLines: 2 },
-                    line: 3,
-                    column: 1,
-                    endLine: 10,
-                    endColumn: 2
-                },
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'nested'", linesExceed: 2, maxLines: 2 },
-                    line: 5,
-                    column: 1,
-                    endLine: 6,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function 'parent'", lineCount: 10, maxLines: 2 } },
+                { messageId: "exceed", data: { name: "Function 'nested'", lineCount: 4, maxLines: 2 } }
             ]
         },
 
@@ -499,14 +380,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Method 'method'", linesExceed: 3, maxLines: 2 },
-                    line: 4,
-                    column: 1,
-                    endLine: 6,
-                    endColumn: 6
-                }
+                { messageId: "exceed", data: { name: "Method 'method'", lineCount: 5, maxLines: 2 } }
             ]
         },
 
@@ -521,14 +395,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Static method 'foo'", linesExceed: 3, maxLines: 2 },
-                    line: 4,
-                    column: 1,
-                    endLine: 6,
-                    endColumn: 6
-                }
+                { messageId: "exceed", data: { name: "Static method 'foo'", lineCount: 5, maxLines: 2 } }
             ]
         },
 
@@ -541,16 +408,9 @@ if ( x === y ) {
         return 1
     }
 }`,
-            options: [{ max: 4, skipComments: true, skipBlankLines: false }],
+            options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Getter 'foo'", linesExceed: 1, maxLines: 4 },
-                    line: 6,
-                    column: 1,
-                    endLine: 6,
-                    endColumn: 6
-                }
+                { messageId: "exceed", data: { name: "Getter 'foo'", lineCount: 5, maxLines: 2 } }
             ]
         },
 
@@ -565,14 +425,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Setter 'foo'", linesExceed: 3, maxLines: 2 },
-                    line: 4,
-                    column: 1,
-                    endLine: 6,
-                    endColumn: 6
-                }
+                { messageId: "exceed", data: { name: "Setter 'foo'", lineCount: 5, maxLines: 2 } }
             ]
         },
 
@@ -590,14 +443,7 @@ if ( x === y ) {
 }`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Static method", linesExceed: 6, maxLines: 2 },
-                    line: 4,
-                    column: 1,
-                    endLine: 9,
-                    endColumn: 6
-                }
+                { messageId: "exceed", data: { name: "Static method", lineCount: 8, maxLines: 2 } }
             ]
         },
 
@@ -612,14 +458,7 @@ if ( x === y ) {
 }());`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false, IIFEs: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function", linesExceed: 5, maxLines: 2 },
-                    line: 3,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Function", lineCount: 7, maxLines: 2 } }
             ]
         },
 
@@ -634,28 +473,7 @@ if ( x === y ) {
 })();`,
             options: [{ max: 2, skipComments: true, skipBlankLines: false, IIFEs: true }],
             errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Arrow function", linesExceed: 5, maxLines: 2 },
-                    line: 3,
-                    column: 1,
-                    endLine: 7,
-                    endColumn: 2
-                }
-            ]
-        },
-        {
-            code: "\nfoo();\nbar();\nbaz();\nfunction name() {\nvar x = 5;\n/* comment 1 */\n/* comment 2 */\n\t\n \n\nvar x = 2;\n}\nquz();",
-            options: [{ max: 2, skipComments: true, skipBlankLines: true }],
-            errors: [
-                {
-                    messageId: "exceed",
-                    data: { name: "Function 'name'", linesExceed: 2, maxLines: 2 },
-                    line: 12,
-                    column: 1,
-                    endLine: 13,
-                    endColumn: 2
-                }
+                { messageId: "exceed", data: { name: "Arrow function", lineCount: 7, maxLines: 2 } }
             ]
         }
     ]