Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jondot/stylomatic
Zero configuration for typescript, react, and more
https://github.com/jondot/stylomatic
build eslint linter prettier typescript
Last synced: 5 days ago
JSON representation
Zero configuration for typescript, react, and more
- Host: GitHub
- URL: https://github.com/jondot/stylomatic
- Owner: jondot
- Created: 2022-02-06T10:17:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T14:56:56.000Z (about 1 year ago)
- Last Synced: 2024-04-13T23:47:50.535Z (7 months ago)
- Topics: build, eslint, linter, prettier, typescript
- Language: JavaScript
- Homepage:
- Size: 200 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stylomatic [![npm version](https://img.shields.io/npm/v/stylomatic?style=flat)](https://npmjs.com/package/stylomatic)
> Styles, configs, and tools for modern Typescript with zero configuration
* :lipstick: Core styles based on [@antfu/config](https://github.com/antfu/eslint-config) covering Typescript, React, best practices, and even `package.json` ordering and formatting, and more.
* :high_brightness: formatting is almost similar to Prettier, without the added burden of it on eslint
* :computer: Typescript config for various usecases
* :hammer: Tools: `esno`, `tsup` and intergrations `ts-jest`, and more.# Usage
Bootstrap quickly:
```
pnpm i -D stylomatic eslint prettier @vercel/[email protected] 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:
```json
"@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"
```