Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/securingsincity/esformatter-config-algolia
Algolia's esformatter config for JavaScript projects
https://github.com/securingsincity/esformatter-config-algolia
Last synced: about 12 hours ago
JSON representation
Algolia's esformatter config for JavaScript projects
- Host: GitHub
- URL: https://github.com/securingsincity/esformatter-config-algolia
- Owner: securingsincity
- License: mit
- Created: 2015-07-29T16:27:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-09T11:46:04.000Z (over 9 years ago)
- Last Synced: 2024-11-08T02:10:09.932Z (about 2 months ago)
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# esformatter-config-algolia
This is [Algolia](https://www.algolia.com/)'s [esformatter](https://github.com/millermedeiros/esformatter) configuration.
It will format your JavaScript code following the [algolia/eslint-config-algolia](https://github.com/algolia/eslint-config-algolia) rules.
## Wait, we have an automatic formatter according to this configuration
If you want to easily reformat your project according to our rules, see [algolia/jsfmt](https://github.com/algolia/jsfmt).
## How to use this configuration?
(really, just use [algolia/jsfmt](https://github.com/algolia/jsfmt))
In your project:
```sh
npm install esformatter \
esformatter-config-algolia \
esformatter-quotes \
esformatter-semicolons \
esformatter-parseint \
esformatter-var-each \
esformatter-eol-last \
esformatter-spaced-lined-comment \
esformatter-shebang-ignore \
esformatter-remove-trailing-commas \
--save-dev
```In your package.json:
```json
{
"scripts": {
"jsformat": "esformatter -i -p default -c node_modules/esformatter-config-algolia/.esformatter"
}
}
```