1

Trying to use eslint + prettier with default angular project.

I want to turn off the warning of exceeding the length of url.

Here is my .eslintrc.json

{
  "files": ["*.html"],
  "extends": ["plugin:@angular-eslint/template/recommended", "prettier"],
  "rules": {
    "max-len": [
      "warn",
      {
        "code": 120,
        "ignoreTemplateLiterals": true,
        "ignoreStrings": true,
        "ignoreUrls": true,
        "ignorePattern": "<path([/s/S]*?)/>"
      }
    ]
  }
}

But still got warnings "line length not allowed"

html and warn example

2
  • Same here, did you find a solution?
    – Tomas
    Commented Feb 7, 2022 at 23:46
  • nope unfortunately
    – LuciusEg
    Commented Feb 18, 2022 at 8:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.