@lrnz09/prettier-config
v1.1.1
Published
My own Prettier config
Downloads
4
Readme
@lrnz09/prettier-config
This is a Prettier configuration file that enforces consistent code formatting in your JavaScript and JSX files. It includes the following rules:
{
jsxSingleQuote: true,
semi: false,
singleQuote: true,
trailingComma: 'all',
};
Installation
To use this Prettier configuration in your project, follow these steps:
Install Prettier: If you haven't already, you need to install Prettier as a development dependency in your project, along with this config. For example, with
npm
:npm install --save-dev prettier @lrnz09/prettier-config
Configuration File: Create a Prettier configuration file in your project's root directory and name it
prettier.config.js
. Set the configuration to use the@lrnz09/prettier-config
package:module.exports = '@lrnz09/prettier-config'
Usage
With this configuration in place, you can now format your code using Prettier.
Follow the official docs here.