3.0.3 • Published 6 years ago
@swimlane/prettier-config-swimlane v3.0.3
prettier-config-swimlane
Prettier configuration used in Swimlane projects.
Installation
Install as a dev dependency (along with prettier) via npm:
npm install --save-dev @swimlane/prettier-config-swimlane prettier@latestUsage
- Create a file named
prettier.config.jswith the following contents:
'use strict';
module.exports = require('@swimlane/prettier-config-swimlane');- Add a
prettierscript to package.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.prettierignorefile.
Executing npm run prettier will now format a project's files.
License
Credits
prettier-config-swimlane is a Swimlane open-source project; we
believe in giving back to the open-source community by sharing some of the
projects we build.
Swimlane 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.