java.lang.IllegalArgumentException: -1 is not a valid line offset for a file

Hi Gabriel. here are (source code section is hidden for brevity and privacy) :

  • Without --quiet argument:
[
  {
    "filePath": "/builds/sti/templates/angular/components/@fuse/services/utils/public-api.ts",
    "messages": [
      {
        "ruleId": null,
        "fatal": false,
        "severity": 1,
        "message": "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override.",
        "nodeType": null
      }
    ],
    "suppressedMessages": [],
    "errorCount": 0,
    "fatalErrorCount": 0,
    "warningCount": 1,
    "fixableErrorCount": 0,
    "fixableWarningCount": 0,
    "usedDeprecatedRules": []
  },
  {
    "filePath": "/builds/sti/templates/angular/components/pages/enterprises/enterprises.component.html",
    "messages": [],
    "suppressedMessages": [],
    "errorCount": 0,
    "fatalErrorCount": 0,
    "warningCount": 0,
    "fixableErrorCount": 0,
    "fixableWarningCount": 0,
    "usedDeprecatedRules": []
  },
  {
    "filePath": "/builds/sti/templates/angular/components/pages/enterprises/enterprises.component.ts",
    "messages": [],
    "suppressedMessages": [],
    "errorCount": 0,
    "fatalErrorCount": 0,
    "warningCount": 0,
    "fixableErrorCount": 0,
    "fixableWarningCount": 0,
    "usedDeprecatedRules": []
  },
  {
    "filePath": "/builds/sti/templates/angular/components/pages/enterprises/enterprises.types.ts",
    "messages": [
      {
        "ruleId": "@typescript-eslint/consistent-indexed-object-style",
        "severity": 2,
        "message": "A record is preferred over an index signature.",
        "line": 69,
        "column": 15,
        "nodeType": "TSTypeLiteral",
        "messageId": "preferRecord",
        "endLine": 69,
        "endColumn": 45,
        "fix": {
          "range": [
            1977,
            2007
          ],
          "text": "Record<string, SortOrder>"
        }
      }
    ],
    "suppressedMessages": [],
    "errorCount": 1,
    "fatalErrorCount": 0,
    "warningCount": 0,
    "fixableErrorCount": 1,
    "fixableWarningCount": 0,
    "source": "...",
    "usedDeprecatedRules": []
  },
  {
    "filePath": "/builds/sti/templates/angular/components/utils/base-page-v3.component.ts",
    "messages": [
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 11,
        "column": 0,
        "nodeType": null,
        "endLine": 11,
        "endColumn": 53
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 47,
        "column": 0,
        "nodeType": null,
        "endLine": 47,
        "endColumn": 71
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 61,
        "column": 0,
        "nodeType": null,
        "endLine": 61,
        "endColumn": 67
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 119,
        "column": 0,
        "nodeType": null,
        "endLine": 119,
        "endColumn": 67
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 131,
        "column": 0,
        "nodeType": null,
        "endLine": 131,
        "endColumn": 52
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 158,
        "column": 0,
        "nodeType": null,
        "endLine": 158,
        "endColumn": 67
      },
      {
        "ruleId": "eslint-comments/no-use",
        "severity": 1,
        "message": "Unexpected ESLint directive comment.",
        "line": 167,
        "column": 0,
        "nodeType": null,
        "endLine": 167,
        "endColumn": 52
      }
    ],
    "suppressedMessages": [
      {
        "ruleId": "@typescript-eslint/no-explicit-any",
        "severity": 2,
        "message": "Unexpected any. Specify a different type.",
        "line": 48,
        "column": 51,
        "nodeType": "TSAnyKeyword",
        "messageId": "unexpectedAny",
        "endLine": 48,
        "endColumn": 54,
        "suggestions": [
          {
            "messageId": "suggestUnknown",
            "fix": {
              "range": [
                2002,
                2005
              ],
              "text": "unknown"
            },
            "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
          },
          {
            "messageId": "suggestNever",
            "fix": {
              "range": [
                2002,
                2005
              ],
              "text": "never"
            },
            "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
          }
        ],
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/no-explicit-any",
        "severity": 2,
        "message": "Unexpected any. Specify a different type.",
        "line": 62,
        "column": 51,
        "nodeType": "TSAnyKeyword",
        "messageId": "unexpectedAny",
        "endLine": 62,
        "endColumn": 54,
        "suggestions": [
          {
            "messageId": "suggestUnknown",
            "fix": {
              "range": [
                2449,
                2452
              ],
              "text": "unknown"
            },
            "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
          },
          {
            "messageId": "suggestNever",
            "fix": {
              "range": [
                2449,
                2452
              ],
              "text": "never"
            },
            "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
          }
        ],
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/no-explicit-any",
        "severity": 2,
        "message": "Unexpected any. Specify a different type.",
        "line": 120,
        "column": 32,
        "nodeType": "TSAnyKeyword",
        "messageId": "unexpectedAny",
        "endLine": 120,
        "endColumn": 35,
        "suggestions": [
          {
            "messageId": "suggestUnknown",
            "fix": {
              "range": [
                4508,
                4511
              ],
              "text": "unknown"
            },
            "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
          },
          {
            "messageId": "suggestNever",
            "fix": {
              "range": [
                4508,
                4511
              ],
              "text": "never"
            },
            "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
          }
        ],
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/dot-notation",
        "severity": 2,
        "message": "[\"id\"] is better written in dot notation.",
        "line": 125,
        "column": 77,
        "nodeType": "Literal",
        "messageId": "useDot",
        "endLine": 125,
        "endColumn": 81,
        "fix": {
          "range": [
            4766,
            4772
          ],
          "text": ".id"
        },
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/dot-notation",
        "severity": 2,
        "message": "[\"id\"] is better written in dot notation.",
        "line": 125,
        "column": 98,
        "nodeType": "Literal",
        "messageId": "useDot",
        "endLine": 125,
        "endColumn": 102,
        "fix": {
          "range": [
            4787,
            4793
          ],
          "text": ".id"
        },
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/dot-notation",
        "severity": 2,
        "message": "[\"_id\"] is better written in dot notation.",
        "line": 127,
        "column": 77,
        "nodeType": "Literal",
        "messageId": "useDot",
        "endLine": 127,
        "endColumn": 82,
        "fix": {
          "range": [
            4917,
            4924
          ],
          "text": "._id"
        },
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/dot-notation",
        "severity": 2,
        "message": "[\"_id\"] is better written in dot notation.",
        "line": 127,
        "column": 99,
        "nodeType": "Literal",
        "messageId": "useDot",
        "endLine": 127,
        "endColumn": 104,
        "fix": {
          "range": [
            4939,
            4946
          ],
          "text": "._id"
        },
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      },
      {
        "ruleId": "@typescript-eslint/no-explicit-any",
        "severity": 2,
        "message": "Unexpected any. Specify a different type.",
        "line": 159,
        "column": 36,
        "nodeType": "TSAnyKeyword",
        "messageId": "unexpectedAny",
        "endLine": 159,
        "endColumn": 39,
        "suggestions": [
          {
            "messageId": "suggestUnknown",
            "fix": {
              "range": [
                6140,
                6143
              ],
              "text": "unknown"
            },
            "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
          },
          {
            "messageId": "suggestNever",
            "fix": {
              "range": [
                6140,
                6143
              ],
              "text": "never"
            },
            "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
          }
        ],
        "suppressions": [
          {
            "kind": "directive",
            "justification": ""
          }
        ]
      }
    ],
    "errorCount": 0,
    "fatalErrorCount": 0,
    "warningCount": 7,
    "fixableErrorCount": 0,
    "fixableWarningCount": 0,
    "source": "...",
    "usedDeprecatedRules": []
  }
]
  • With --quiet argument:
[
  {
    "filePath": "/builds/sti/templates/angular/components/pages/enterprises/enterprises.types.ts",
    "messages": [
      {
        "ruleId": "@typescript-eslint/consistent-indexed-object-style",
        "severity": 2,
        "message": "A record is preferred over an index signature.",
        "line": 69,
        "column": 15,
        "nodeType": "TSTypeLiteral",
        "messageId": "preferRecord",
        "endLine": 69,
        "endColumn": 45,
        "fix": {
          "range": [
            1977,
            2007
          ],
          "text": "Record<string, SortOrder>"
        }
      }
    ],
    "suppressedMessages": [],
    "errorCount": 1,
    "fatalErrorCount": 0,
    "warningCount": 0,
    "fixableErrorCount": 1,
    "fixableWarningCount": 0,
    "source": "...",
    "usedDeprecatedRules": []
  }
]
1 Like