@manuelstolze/prettier-config
v1.0.1
Published
Centralized prettier config for my projects
Downloads
1
Readme
README
This repository contains a centralized Prettier configuration that can be used across multiple projects. The configuration is defined in config/index.json
.
Getting Started
To use this configuration in your project, first install it as a dev dependency:
npm install --save-dev @manuelstolze/prettier-config
Then, reference it in your package.json
:
{
"prettier": "@manuelstolze/prettier-config"
}
Or, if you prefer, you can create a .prettierrc.js
file in the root of your project and export the configuration:
module.exports = require("@manuelstolze/prettier-config");
Configuration
The current configuration is as follows:
{
"singleQuote": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "always",
"tabWidth": 2,
"useTabs": false,
"trailingComma": "none",
"semi": true,
"arrowParens": "always"
}
This configuration can be overridden by adding a .prettierrc.js
file in your project and merging it with the base configuration:
const baseConfig = require("@manuelstolze/prettier-config");
module.exports = {
...baseConfig,
// your overrides here
};