Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

semistandard-prettier-eslint

bySabi79MIT1.0.2

Code -> prettier -> semistandard --fix -> Formatted Code

prettier, eslint, prettier-eslint, linter, standard, standard-engine, semistandard

readme

semistandard-prettier-eslint

npm version npm downloads

Formats your JavaScript using prettier followed by semistandard --fix

  • prettier is a wonderful tool for code prettify.
  • semistandard is zero configuration pain tool based on ESLint.

The two packages are great and very well designed, that can be used together with a minimum effort

Installation

$ npm install semistandard-prettier-eslint --save-dev

Usage

Ex: package.json

"scripts": {
  ...
  "lint": "semistandard --verbose | snazzy",
  "format": "npm run __format -- --write '**/*.js'",
  "__format": "prettier-eslint --no-bracket-spacing --eslint-path=node_modules/semistandard-prettier-eslint"
}

Standalone CLI

prettier-semi-cli is the cli version. Created for simplify package.json scripts settings and use globally.

If you don't like semicolons use standard version

Contributing

  • Documentation improvement
  • Feel free to send any PR

License

MIT