https://github.com/osdevisnot/xo-quick
Setup javascript Formatting and Linting
https://github.com/osdevisnot/xo-quick
Last synced: 4 months ago
JSON representation
Setup javascript Formatting and Linting
- Host: GitHub
- URL: https://github.com/osdevisnot/xo-quick
- Owner: osdevisnot
- License: mit
- Created: 2020-08-27T22:57:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T19:59:53.000Z (about 3 years ago)
- Last Synced: 2025-02-16T01:02:34.844Z (4 months ago)
- Language: JavaScript
- Homepage: http://npm.im/xo-quick
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xo-quick
Setup javascript formatting and linting based on `xo` and `prettier` with `husksy` with only one dependency.
```bash
yarn add --dev xo-quick
```## Why ?
I am a huge fan of `prettier`, but `prettier` focuses only on stylistic rules. To achieve better code quality, a linter like `eslint` is a must have in your toolchain.
I mostly created this package to help setting up new projects easier.
## How ?
This package brings in necessary dependencies and uses npm `postinstall` scripts to automatically setup javascript formatting and linting.
The `postinstall` script of `xo-quick` sets `pkg.prettier`, `pkg.husky` and `pkg.xo` properties in `package.json` if they do not already exist and remove `.prettierrc` and `prettier.config.js` if those files exist.