A prettier-plugin-x fork which uses Babel + prettierX by default for ES languages


A fork of prettier-plugin-x which uses
Babel and prettierX
by default for ES languages JavaScript, Flow, and TypeScript, all in a
Prettier plugin.
Includes options from prettierX for
improved parity with "Standard JS", for example:
``js
function * a () {}
console.log(typeof a)
`
with the following .prettierrc configuration:
`js`
{
semi: false,
generatorStarSpacing: true,
spaceBeforeFunctionParen: true
}
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 --config ./sample-prettierx-prettierrc --check sample.js
to specify TypeScript via babel-ts parser:
`console`
prettier --config ./sample-prettierx-prettierrc --parser=typescript --check sample.js
or:
`console`
prettier --config ./sample-prettierx-prettierrc --parser=babel-ts --check sample.js
to specify Flow via babel-flow parser:
`console`
prettier --config ./sample-prettierx-prettierrc --parser=flow --check sample.js
or:
`console`
prettier --config ./sample-prettierx-prettierrc --parser=babel-flow --check sample.js
- Based on: prettier-plugin-x`
- Thanks to
which helped with the initial structure of this Prettier plugin.