solhint

max-line-length

Category Badge Default Severity Badge error

The {“extends”: “solhint:default”} property in a configuration file enables this rule.

Description

Line length must be no more than maxlen.

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of “error”, “warn”, “off”. error
1 Maximum allowed number of characters per line 120

Example Config

{
  "rules": {
    "max-line-length": ["error",120]
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 1.1.5

Resources