editorconfig-to-prettier
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -49,4 +49,8 @@ module.exports = editorConfigToPrettier; | ||
if (editorConfig.max_line_length && editorConfig.max_line_length !== "off") { | ||
result.printWidth = editorConfig.max_line_length; | ||
if (editorConfig.max_line_length) { | ||
if (editorConfig.max_line_length === "off") { | ||
result.printWidth = Number.POSITIVE_INFINITY; | ||
} else { | ||
result.printWidth = editorConfig.max_line_length; | ||
} | ||
} | ||
@@ -53,0 +57,0 @@ |
{ | ||
"name": "editorconfig-to-prettier", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Converts an `editorconfig`-parsed object to a `prettier` configuration", | ||
@@ -25,4 +25,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"prettier": "^1.7.4" | ||
"prettier": "^2.8.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2978
62
0