https://github.com/swimlane/prettier-config-swimlane
:lipstick: Prettier configuration used in Swimlane projects.
https://github.com/swimlane/prettier-config-swimlane
prettier prettier-config
Last synced: 7 months ago
JSON representation
:lipstick: Prettier configuration used in Swimlane projects.
- Host: GitHub
- URL: https://github.com/swimlane/prettier-config-swimlane
- Owner: swimlane
- License: mit
- Created: 2018-04-16T16:09:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-19T13:04:46.000Z (9 months ago)
- Last Synced: 2025-03-23T17:12:16.297Z (7 months ago)
- Topics: prettier, prettier-config
- Language: JavaScript
- Size: 569 KB
- Stars: 2
- Watchers: 29
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prettier-config-swimlane
[Prettier](https://prettier.io/) configuration used in Swimlane projects.
## Installation
Install as a dev dependency (along with [`prettier`](https://www.npmjs.com/package/prettier)) via [npm](https://www.npmjs.com/):
```bash
npm install --save-dev @swimlane/prettier-config-swimlane prettier@latest
```
## Usage
1. Create a file named `prettier.config.js` with the following contents:
```javascript
'use strict';
module.exports = require('@swimlane/prettier-config-swimlane');
```
2. Add a `prettier` script to package.json:
```json
{
"scripts": {
"prettier": "prettier --write \"**/*.js\""
}
}
```
> Adjust the glob pattern as needed to include more file extensions.
> For example, `\"**/*.{js,ts}\"` will format both JavaScript and TypeScript files.
> Files can be excluded with a [`.prettierignore` file](https://prettier.io/docs/en/ignore.html#ignoring-files).
Executing `npm run prettier` will now format a project's files.
## License
[MIT](LICENSE)
## Credits
`prettier-config-swimlane` is a [Swimlane](http://swimlane.com) open-source project; we
believe in giving back to the open-source community by sharing some of the
projects we build.
[Swimlane](http://www.swimlane.com) is an automated cyber security operations and incident response
platform that enables cyber security teams to leverage threat intelligence,
speed up incident response and automate security operations.