Skip to content

1.9: Must explicitly set printWidth config for Markdown files #3410

@ghost

Description

Prettier 1.9.0
Playground link

# Options (if any):
{
  "singleQuote": true,
  "trailingComma": "es5"
}

Input:
See playground

Output:

[error] Invalid printWidth value.
[error] Expected an integer, but received: "off"

Expected behavior:
No printWidth config needed.

I do not get this error with the following config:

{
  "singleQuote": true,
  "trailingComma": "es5",
+  "printWidth": 80
}

Metadata

Metadata

Assignees

Labels

locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions