Shared configuration for Commitlint, ESLint, Prettier, Stylelint, and TypeScript.
| Package | Version | Last Update |
|---|---|---|
| @tofrankie/commitlint | ||
| @tofrankie/eslint | ||
| @tofrankie/prettier | ||
| @tofrankie/stylelint | ||
| @tofrankie/tsconfig |
Important
Before 1.0.0, releases may include breaking changes. Read each package's CHANGELOG before upgrading.
$ pnpm add @commitlint/cli @tofrankie/commitlint -DCreate a commitlint.config.js in your project root:
export default {
extends: ['@tofrankie/commitlint'],
}$ pnpm add eslint @tofrankie/eslint -DCreate an eslint.config.mjs in your project root:
import { defineConfig } from '@tofrankie/eslint'
export default defineConfig()$ pnpm add prettier @tofrankie/prettier -DCreate a prettier.config.mjs in your project root:
export default '@tofrankie/prettier'$ pnpm add stylelint @tofrankie/stylelint -DCreate a stylelint.config.mjs in your project root:
export default {
extends: ['@tofrankie/stylelint'],
}$ pnpm add typescript @tofrankie/tsconfig -DCreate a tsconfig.json in your project root:
{
"extends": "@tofrankie/tsconfig/react.vite.json"
}Use @antfu/nip to manage dependencies and keep pnpm catalogs in sync.
MIT License © Frankie