1.0.0 • Published 1 year ago
@singlepixellab/prettier-config v1.0.0
@singlepixellab/prettier-config
Prettier config used in Single Pixel Lab packages and projects
Installation
Install preset package
npm i -D @singlepixellab/prettier-config
# Make sure to also install prettier
npm i -D prettierUsage
You can reference this preset in your package.json:
{
"name": "your-project",
"version": "1.0.0",
"prettier": "@singlepixellab/prettier-config"
}or you can use any of the supported extensions to export a string, e.g. .prettierrc:
"@singlepixellab/prettier-config"Extending config
To extend and modify this configuration, import the file in a .prettierrc.js file:
import splConfig from "@singlepixellab/prettier-config";
/**
* @type {import("prettier").Config}
*/
const config = {
...splConfig,
tabWidth: 4,
};
export default config;License
MIT © Single Pixel Lab