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


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":
``js
function * a () {}
console.log(typeof a)
`
with Yarn (recommended):
`console`
yarn add --dev prettier-plugin-x-babel
or with npm:
`console`
npm install --save-dev prettier-plugin-x-babel
`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
- Based on: prettier-plugin-x`
- Thanks to
which helped with the initial structure of this Prettier plugin.