Skip to content

Home for my js config files (prettier, eslint, typescript)

Notifications You must be signed in to change notification settings

DecampsRenan/config

Repository files navigation

Personal config files

I use this config in all my projects. No need to copy/paste anymore 😄

Supported tools

  • Prettier
  • ESLint
  • Typescript

Install

npm i -D @decampsrenan/config

Usage

Prettier

// package.json
{
  "name": "...",
  "prettier": "@decampsrenan/config/prettier-default"
  // Use "prettier-astro" to format astro files
  // "prettier": "@decampsrenan/config/prettier-astro"
}

Or if you need more control on the settings:

// .prettierrc.mjs
import config from "@decampsrenan/config/prettier-default"

export default {
  ...config
  // Override with your custom needs here
}

Then run the following commands to check or update files if needed:

npx prettier -c ./ # Check if there is some files to update
npx prettier -w ./ # Update files

TSConfig

// tsconfig.json
{
  "extends": "@decampsrenan/config/tsconfig"
  // Override with your custom needs here
}

About

Home for my js config files (prettier, eslint, typescript)

Resources

Stars

Watchers

Forks

Packages

No packages published