Skip to content

CodeCoupler Webpack Change Line Length

Linters for JavaScript and Stylesheets will exclude formating the line length. So you have to set the line lengths only in one place. Here we have defined the line lengths for different languages:

.prettierrc

{
  "printWidth": 80,
  "overrides": [
    {
      "files": ["*.html", "*.vue"],
      "options": {
        "printWidth": 120
      }
    }
  ]
}

After set these properties you have to "ESLint: Restart ESLint Server"!

Markdown is handled separately from markdownlint. The configuration is done in a separate file:

.markdownlint.json

1
2
3
4
5
{
  "MD013": {
    "line_length": 100
  }
}