Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

editorconfig-to-prettier

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editorconfig-to-prettier - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

8

index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc