@swimlane/prettier-config-swimlane
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "@swimlane/prettier-config-swimlane", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Prettier configuration used in Swimlane projects.", | ||
@@ -44,7 +44,7 @@ "main": "index.js", | ||
"jsonschema": "^1.2.4", | ||
"prettier": "^1.15.3" | ||
"prettier": "^1.16.4" | ||
}, | ||
"peerDependencies": { | ||
"prettier": "~1.15.3" | ||
"prettier": "~1.16.4" | ||
} | ||
} |
# 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)`@1.15`) via [npm](https://www.npmjs.com/): | ||
Install as a dev dependency (along with [`prettier`](https://www.npmjs.com/package/prettier)`@1.16`) via [npm](https://www.npmjs.com/): | ||
```bash | ||
npm install --save-dev prettier@1.15 @swimlane/prettier-config-swimlane | ||
npm install --save-dev @swimlane/prettier-config-swimlane prettier@1.16 | ||
``` | ||
## Usage | ||
1. Create a file named `prettier.config.js` with the following contents: | ||
```javascript | ||
@@ -19,2 +24,3 @@ 'use strict'; | ||
2. Add a `prettier` script to package.json: | ||
```json | ||
@@ -27,2 +33,3 @@ { | ||
``` | ||
> Adjust the glob pattern as needed to include more file extensions. | ||
@@ -35,5 +42,7 @@ > For example, `\"**/*.{js,ts}\"` will format both JavaScript and TypeScript files. | ||
## License | ||
[MIT](LICENSE) | ||
## Credits | ||
`prettier-config-swimlane` is a [Swimlane](http://swimlane.com) open-source project; we | ||
@@ -45,2 +54,2 @@ believe in giving back to the open-source community by sharing some of the | ||
platform that enables cyber security teams to leverage threat intelligence, | ||
speed up incident response and automate security operations. | ||
speed up incident response and automate security operations. |
3940
52