1.2.1 • Published 6 months ago
@seriesfi/prettier-config v1.2.1
prettier-config
This package provides a shared Prettier configuration for all of our projects.
Installation
npm install --save-peer @seriesfi/prettier-config
Usage
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 prettierConfig
Ideally, 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.