@seriesfi/prettier-config
v1.2.1
Published
Prettier shareable config for Series Financial
Readme
prettier-config
This package provides a shared Prettier configuration for all of our projects.
Installation
npm install --save-peer @seriesfi/prettier-configUsage
Add a prettier.config.js file to the root of your project with the following contents:
import baseConfig from '@seriesfi/prettier-config'
const prettierConfig = {
...baseConfig,
// Add any project-specific overrides here
}
export default prettierConfigIdeally, this package is paired with our eslint-config package. It is suggested that you set up a pre-commit hook to run Prettier on all staged files. The GitHub Actions workflow will fail if any files are not formatted correctly.
