This package provides the Prettier configuration for standardizing code formatting within Commencis projects. With predefined settings, it ensures consistency and readability across codebases.
To use this Prettier configuration in your project, simply install it as a dev dependency:
With npm
:
npm install --save-dev @commencis/prettier-config
With yarn
:
yarn add --dev @commencis/prettier-config
With pnpm
:
pnpm add --save-dev @commencis/prettier-config
Once installed, you can reference this configuration in your project's Prettier configuration file, typically named prettier.config.js
.
import commencisPrettierConfig from '@commencis/prettier-config';
export default commencisPrettierConfig;
module.exports = require('@commencis/prettier-config');
If you have files or directories that should be excluded from Prettier formatting (e.g., build output, logs), create a .prettierignore file in your project root and list them there.
Example .prettierignore
file:
# pnpm
pnpm-lock.yaml
# production
dist/
# test
coverage/
We welcome contributions to improve this package. Feel free to open issues or pull requests to suggest enhancements or report any issues.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
© Commencis, 2024. All rights reserved.