Kiwi Tooling is a very dear and hand-crafted front-end tooling preset that aims to guide you on writing readable code for humans.
For now, this presets are more focused in providing an easier DX for all kinds of projects that I find myself getting into. That's why it comes with plugins for svelte
, etc. The rules plugins won't be used if the project doesn't have its related tool installed.
- ES6+ by default
- React (optional, must install
react
) - Svelte (optional, must install
svelte
) - Typescript (optional, must install
typescript
)
$ yarn add -D @kiwi/eslint-config @kiwi/prettier-config
.eslintrc:
{
"extends": "@kiwi",
// or
"extends": "@kiwi/svelte",
// or
"extends": "@kiwi/react"
}
.prettierrc:
With semi-colons:
"@kiwi/prettier-config"
Without semi-colons:
"@kiwi/prettier-config/semi-less"
(that's the whole .prettierrc
)