ESLint / Prettier column width
Changing from default 80 to 120 characters
To increase the column width to 120 I had to change both .eslintrc
and .prettierrc
. Then VSCode Format Document
command worked as expected.
.eslintrc
"rules": {
"max-len":
[
"error",
{
"code": 120
}
]
}
.prettierrc
{
"printWidth": 120
}