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

@webdevstudios/prettier-config-js-coding-standards

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webdevstudios/prettier-config-js-coding-standards

Prettier Support/Configuration for WebDevStudios JavaScript Coding Standards.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

WebDevStudios. WordPress for big brands.

Prettier Config for WebDevStudios JavaScript Coding Standards

How to Install

Install @webdevstudios/js-coding-standards

Changlog

1.0.2

  • Installs @webdevstudios/prettier-config-coding-standards so that you can now set your package.json prettier setting to @webdevstudios/prettier-config-coding-standards which 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-config as 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 printWidth from @wordpress/prettier-config to be 99000, pretty big, because we don't explicitly have a rule for this internally
  • Added bracketSpacing because @wordpress/prettier-config doesn't explicity set it
  • Installed https://github.com/Automattic/wp-prettier so we can add parenSpacing support so ( true ) doesn't get auto-formatted to (true)

FAQs

Package last updated on 29 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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