Skip to content

🔧 Shared configs for ESLint, Prettier, and custom TypeScript stuff

Notifications You must be signed in to change notification settings

kuroji-fusky/kuro-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuro Utils

An assortment of configs I've written from scratch and in use for projects I work on!

Inside Da Box

  • configs
  • types - Custom types mostly tailored for DOM and React stuff

Usage

Since I have no plans to publish this to the npm registry, you'll need to add this repo as a submodule and is best fitted for a monorepo setup.

git submodule add https://github.com/kuroji-fusky/kuro-utils utils/

Monorepo setup

If you're using Yarn workspaces, you can specify what you'll need. In most cases, you'll need the whole config folder because you're cool like me 😎

{
  "workspaces": ["utils/config/**"]
}

Extending a Prettier config

You can "extend" a Prettier config by using a JS config file as there's no support to extend another config with .prettierrc.json unfortunately.

module.exports = require("@kuro-utils/prettier")

Use the s p r e a d syntax to override a setting from the base config:

module.exports = {
  ...require("@kuro-utils/prettier"),
  semi: true,
}

About

🔧 Shared configs for ESLint, Prettier, and custom TypeScript stuff

Topics

Resources

Stars

Watchers

Forks