# prettier-plugin-x-babel-standard

> Fork of prettier-plugin-x / prettier-plugin-x-babel / prettier-plugin-x-standard using Babel + prettierX, with defaults updated to match "Standard JS" formatting

Latest version **0.0.1** (published 2021-06-20) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install prettier-plugin-x-babel-standard
pnpm add prettier-plugin-x-babel-standard
yarn add prettier-plugin-x-babel-standard
bun add prettier-plugin-x-babel-standard
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-06-20 |
| First published | 2021-06-20 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @brodybits |
| Maintainers | brodybits |

## Links

- npm: https://www.npmjs.com/package/prettier-plugin-x-babel-standard
- Homepage: https://github.com/brodybits/prettier-plugin-x-babel-standard#readme
- Issues: https://github.com/brodybits/prettier-plugin-x-babel-standard/issues
- npm.io page: https://npm.io/package/prettier-plugin-x-babel-standard

## Dependencies (1)

- [prettierx](https://npm.io/package/prettierx.md) ^0.18.2

## Recent versions

- 0.0.1 (latest) — 2021-06-20

## README

# prettier-plugin-x-babel-standard

[![LICENSE](https://img.shields.io/npm/l/prettier-plugin-x-babel-standard?color=green&style=flat-square)](./LICENSE.md)
[![npm package](https://img.shields.io/npm/v/prettier-plugin-x-babel-standard?color=blue&style=flat-square)](https://www.npmjs.com/package/prettier-plugin-x-babel-standard)

Fork of [`prettier-plugin-x-babel`](https://github.com/brodybits/prettier-plugin-x) / [`prettier-plugin-x-babel`](https://github.com/brodybits/prettier-plugin-x-babel) / [`prettier-plugin-x-standard`](https://github.com/brodybits/prettier-plugin-x-standard),
with defaults updated to match **["Standard JS"](https://standardjs.com/)** formatting standards,
using **[Babel](https://babeljs.io/)** and **[prettierX](https://github.com/brodybits/prettierx)**
by default for ES languages JavaScript, Flow, and TypeScript, all in a
**[Prettier plugin](https://prettier.io/docs/en/plugins.html)**.

Sample formatting according to **["Standard JS"](https://standardjs.com/)**:

```js
function * a () {}

console.log(typeof a)
```

## Installation

with Yarn (recommended):

```console
yarn add --dev prettier-plugin-x-babel
```

or with npm:

```console
npm install --save-dev prettier-plugin-x-babel
```

## Sample usage

```console
prettier --check sample.js
```

to specify TypeScript via `babel-ts` parser:

```console
prettier --parser=typescript --check sample.js
```

or:

```console
prettier --parser=babel-ts --check sample.js
```

to specify Flow via `babel-flow` parser:

```console
prettier --parser=flow --check sample.js
```

or:

```console
prettier --parser=babel-flow --check sample.js
```

## Thanks and credits

- Based on: [`prettier-plugin-x`](https://github.com/brodybits/prettier-plugin-x)
- Thanks to **<https://github.com/prettier/plugin-php>** for an easy-to-understand Prettier plugin,
  which helped with the initial structure of this Prettier plugin.

---
_Source: https://npm.io/package/prettier-plugin-x-babel-standard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
