0.0.1 • Published 4 years ago
prettier-plugin-x-babel-standard v0.0.1
prettier-plugin-x-babel-standard
Fork of prettier-plugin-x-babel / prettier-plugin-x-babel / prettier-plugin-x-standard,
with defaults updated to match "Standard JS" formatting standards,
using Babel and prettierX
by default for ES languages JavaScript, Flow, and TypeScript, all in a
Prettier plugin.
Sample formatting according to "Standard JS":
function * a () {}
console.log(typeof a)Installation
with Yarn (recommended):
yarn add --dev prettier-plugin-x-babelor with npm:
npm install --save-dev prettier-plugin-x-babelSample usage
prettier --check sample.jsto specify TypeScript via babel-ts parser:
prettier --parser=typescript --check sample.jsor:
prettier --parser=babel-ts --check sample.jsto specify Flow via babel-flow parser:
prettier --parser=flow --check sample.jsor:
prettier --parser=babel-flow --check sample.jsThanks and credits
- Based on:
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.
0.0.1
4 years ago