Skip to content

mkvlrn/prettier-config

Repository files navigation

@mkvlrn/prettier

what

a packaged prettier configuration with some opinionated defaults

also brings tailwindcss support (order of classes) and imports sorting, both via plugins

how

installing prettier separately is required, and pinning its version is required to match this config

yarn add prettier@^3.3.3 @mkvlrn/prettier-config -D

on your prettier.config.js file:

export { default } from "@mkvlrn/prettier";

if you want to add rules to the config, you export it as default while adding your rules to the config array:

import config from "@mkvlrn/prettier";

export default {
  ...config,

  // add your rules here
  semi: false,
};

About

Custom Prettier configuration for my projects

Resources

Stars

Watchers

Forks

Packages

No packages published