An assortment of configs I've written from scratch and in use for projects I work on!
configs
eslint-config-kuroji
- My base ESLint configeslint-config-kuroji-vue
- My Vue ESlint config, which extends to the baseprettier
- Prettier configtailwind
- Tailwind CSS config that extends radial gradients, flexible grids, and stuff
types
- Custom types mostly tailored for DOM and React stuff
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/
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/**"]
}
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,
}