Skip to content

openregion/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prettier shared config

Open Region Prettier shared config

Usage

Install package

npm install --save-dev @openregion/prettier-config

Create .prettierrc.mjs file with this content

import openRegionPrettierConfig from '@openregion/prettier-config';

export default {
  ...openRegionPrettierConfig,
};

ESLint

To use this package with ESLint, install

npm install --save-dev eslint-config-prettier

Extend ESLint config (.eslintrc) with prettier. Example:

{
  "extends": [
    "@openregion",
    "prettier"
  ]
}

This will turn off all rules that are unnecessary or might conflict with Prettier.

About

Prettier shared config

Resources

Stars

Watchers

Forks