1.0.2 • Published 7 years ago

standard-prettier-eslint v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

standard-prettier-eslint

npm version npm downloads

Formats your JavaScript using prettier followed by standard --fix

  • prettier is a wonderful tool for code prettify.
  • standard 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 standard-prettier-eslint --save-dev

Usage

Ex: package.json

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

Standalone CLI

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

If you prefer semicolons use semistandard version

Contributing

  • Documentation improvement
  • Feel free to send any PR

License

MIT