prettier-config-steamhouse
v1.0.4
Published
Shared Prettier configuration for Steamhouse project
Downloads
7
Maintainers
Readme
prettier-config-steamhouse
Shared Prettier configuration for Steamhouse project.
Installation
To install the shared Prettier configuration in your project, run the following command:
npm install --save-dev prettier-config-steamhouse
Usage
To use the shared Prettier configuration in your project, add the following to your package.json file:
{
"name": "your-project-name",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
// your dependencies
},
"devDependencies": {
// your dev dependencies
"prettier-config-steamhouse": "^1.0.0"
},
"prettier": "prettier-config-steamhouse"
}
Alternatively, if you prefer to use a .prettierrc.js file, you can create or update it in your project root as follows:
const prettierConfig = require("prettier-config-steamhouse");
module.exports = {
...prettierConfig,
// You can override or extend configurations here
};
Configuration
The configuration provided by this package is as follows:
{
"singleQuote": false,
"tabWidth": 4,
"semi": true,
"printWidth": 80
}
Publishing Updates
If you need to update the shared configuration, follow these steps:
Make your changes to the
.prettierrc.json
file in theprettier-config-steamhouse
directory.Update the version number in package.json.
Publish the updated package:
npm publish --access public
License
This project is licensed under the ISC License. Feel free to adjust the details as necessary for your specific needs.