1.0.1 • Published 4 years ago

@webdevstudios/prettier-config-coding-standards v1.0.1

Weekly downloads
-
License
GPL-2.0-or-later
Repository
github
Last release
4 years ago

Dynamic Prettier Configuration Loader for WebDevStudios CSS, JavaScript, and/or PHP Coding Standards

This package gets installed automatically when you install any of the WebDevStudios coding standard packages and will automatically configure prettier for you if you set package.json's prettier setting to:

"prettier": "@webdevstudios/prettier-config-coding-standards"

How to Install

Install @webdevstudios/css-coding-standards, @webdevstudios/js-coding-standards, or webdevstudios/php-coding-standards and this package will be included automatically.

Changelog

1.0.1

  • Patch to fix issue where the final config for prettier set to @webdevstudios/prettier-config-coding-standards combines JS, CSS, and PHP properly

In the previous version these were not getting combined properly, instead the last config to load (via npm) would take the cake, and be the final config. This worked fine when JS was the only config, but if you installed PHP or CSS configs, they could likely end up being the final config breaking auto-formatting.

This new method takes the @webdevstudios/prettier-config-(php|js|css)-coding-standards modules and, depending on if they are installed, takes the overrides setting in each and merges them into modules.exports for @webdevstudios/prettier-config-coding-standards.

1.0.0

This version simply loads prettier configurations for css, js, and/or php if they are installed.