jondot / stylomatic

Zero configuration for typescript, react, and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylomatic npm version

Styles, configs, and tools for modern Typescript with zero configuration

  • ๐Ÿ’„ Core styles based on @antfu/config covering Typescript, React, best practices, and even package.json ordering and formatting, and more.
  • ๐Ÿ”† formatting is almost similar to Prettier, without the added burden of it on eslint
  • ๐Ÿ’ป Typescript config for various usecases
  • ๐Ÿ”จ Tools: esno, tsup and intergrations ts-jest, and more.

Usage

Bootstrap quickly:

pnpm i -D stylomatic eslint prettier @vercel/style-guide@5.0.2-canary.1 eslint-plugin-tailwindcss
pnpm stylomatic init

Will give you a starter .eslintrc.js, .prettierrc.js and tsconfig.json.

note: because of package hoisting, we're installing all top-level deps. Stylomatic used to group all dependencies but today, stylomatic has been reduced to install just for tsconfig assets and the installer bin.

Tooling deps

Starting v0.5.0, moved to here, instead of installed by default to be more compatible with how different package managers handle bins. Put these in root of your monorepo if needed:

    "@types/supertest": "^2.0.14",
    "supertest": "^6.3.3"
    "jest": "^28.1.1",
    "ts-jest": "^29.0.3",
    "tsup": "^6.1.0",
    "typescript-cp": "^0.1.5",
    "typescript": "^4.7.3",
    "concurrently": "^7.2.1",
    "rimraf": "^3.0.2",
    "tsc-alias": "^1.6.9"

About

Zero configuration for typescript, react, and more


Languages

Language:JavaScript 97.1%Language:TypeScript 2.9%