1.0.2 • Published 5 years ago
@webdevstudios/prettier-config-js-coding-standards v1.0.2
Prettier Config for WebDevStudios JavaScript Coding Standards
How to Install
Install @webdevstudios/js-coding-standards
Changlog
1.0.2
- Installs
@webdevstudios/prettier-config-coding-standardsso that you can now set yourpackage.jsonprettiersetting to@webdevstudios/prettier-config-coding-standardswhich dynamically load all prettier configs for all coding standard packages, depending on what you have installed
1.0.1
- Fix issue where configuration could format other code, not just JavaScript PR
Note, this patch ensures that the config for JavaScript does not act as a config for example, CSS. But, given that some editor packages may have defaults, you may still get formatting from your editor. But, e.g. prettier --write file.css won't auto-format CSS code using this config.
See the PR for what JavaScript-ish files we process with this config.
1.0.0
- Uses
@wordpress/prettier-configas a base, which currently explicitly uses:
{
useTabs: true,
tabWidth: 4,
printWidth: 80,
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
parenSpacing: true,
jsxBracketSameLine: false,
semi: true,
arrowParens: 'always',
}- Override
printWidthfrom@wordpress/prettier-configto be99000, pretty big, because we don't explicitly have a rule for this internally - Added
bracketSpacingbecause@wordpress/prettier-configdoesn't explicity set it - Installed
https://github.com/Automattic/wp-prettierso we can addparenSpacingsupport so( true )doesn't get auto-formatted to(true)