@opinionated-ts/config 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +42 -37
  2. package/lefthook.yml +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,52 +2,57 @@
2
2
 
3
3
  Opinionated, reusable TypeScript tooling configurations focused on performance, code quality, and developer experience.
4
4
 
5
- ## Installation
5
+ ## When to use?
6
6
 
7
- ```bash
8
- bun add -D @opinionated-ts/config
7
+ This package provides recommended, opinionated configurations designed to reduce project setup time and maintain consistent tooling across TypeScript projects.
9
8
 
10
- # npm install -D @opinionated-ts/config
11
- # pnpm add -D @opinionated-ts/config
12
- # yarn add -D @opinionated-ts/config
13
- ```
9
+ Use it when you want to:
14
10
 
15
- ## Usage
11
+ - Move fast without sacrificing code quality
12
+ - Keep a consistent developer experience across repositories
13
+ - Avoid repetitive configuration boilerplate
14
+ - Standardize tooling with a clear opinionated default
16
15
 
17
- Import the configurations you need:
16
+ The configurations prioritize:
18
17
 
19
- <!-- prettier-ignore -->
20
- ```ts
21
- import {
22
- commitlintConfig,
23
- cspellConfig,
24
- oxfmtConfig,
25
- oxlintConfig,
26
- } from "@opinionated-ts/config";
27
- ```
18
+ - **Performance** — Fast tooling and builds
19
+ - **Code quality** — Comprehensive linting and type checking
20
+ - **Developer experience** — Zero-friction setup and consistent workflows
21
+ - **Modern tooling** — Latest standards and best practices
28
22
 
29
- <!-- prettier-ignore -->
30
- Each configuration can be used directly as a recommended default or customized depending on the configuration system supported by each tool.
23
+ > [!NOTE]
24
+ > This package is designed primarily for **Bun** environments. The workflow validations and tool integrations are optimized for Bun's runtime and package manager.
31
25
 
32
- See the configuration guides for each tool:
26
+ ## What's included
33
27
 
34
- - [Scripts](./docs/scripts.md)
35
- - [Typescript](./docs/tsconfig.md)
36
- - [Commitlint](./docs/commitlint.md)
37
- - [CSpell](./docs/cspell.md)
38
- - [Oxfmt](./docs/oxfmt.md)
39
- - [Oxlint](./docs/oxlint.md)
40
- - [Lefthook](./docs/lefthook.md)
41
- - [GitHub Actions](./docs/github-actions.md)
42
- - [Release](./docs/release.md)
28
+ ### Local Automatic Validations
43
29
 
44
- ## Philosophy
30
+ | Category | Tool | Description |
31
+ | ------------------ | --------------------------------------------- | --------------------------------------------------------------------- |
32
+ | **Type checking** | [TypeScript](https://www.typescriptlang.org/) | Applied together with Oxlint via `typeCheck`/`typeAware` |
33
+ | **Linter** | [Oxlint](https://oxc.rs/) | Fast linting, pre-configured |
34
+ | **Formatter** | [Oxfmt](https://oxc.rs/) | Fast formatting, pre-configured |
35
+ | **Spellchecking** | [cspell](https://cspell.org/) | Pre-configured for English/Spanish |
36
+ | **Commit linting** | [commitlint](https://commitlint.js.org/) | Enforces [Conventional Commits](https://www.conventionalcommits.org/) |
37
+ | **Git hooks** | [lefthook](https://lefthook.dev/) | Wired up locally (`pre-commit`, `commit-msg`, `pre-push`) |
45
38
 
46
- This package provides recommended, opinionated configurations designed to reduce project setup time and maintain consistent tooling across TypeScript projects.
39
+ ### Remote Automatic Validations
47
40
 
48
- The configurations prioritize:
41
+ | Category | Tool | Description |
42
+ | ----------- | -------------------------------------------------------- | -------------------------------------------------------- |
43
+ | **CI/CD** | [GitHub Actions](https://github.com/features/actions) | Automated workflows for validation and release pipelines |
44
+ | **Release** | [Semantic Release](https://semantic-release.gitbook.io/) | Automated versioning and releases |
45
+
46
+ ## Getting started
47
+
48
+ ### Option 1: Start fast with the template
49
+
50
+ The easiest way to use this stack is to start from our ready-to-use template:
51
+
52
+ 👉 [@opinionated-ts/template](https://github.com/opinionated-ts/template)
53
+
54
+ It is already set up with the recommended defaults and tooling wiring.
55
+
56
+ ### Option 2: Add to an existing project
49
57
 
50
- - Performance
51
- - Code quality
52
- - Developer experience
53
- - Modern tooling
58
+ Install the package and follow our [Installation, Usage & Configuration Guide](./docs/getting-started.md).
package/lefthook.yml CHANGED
@@ -30,7 +30,7 @@ pre-push:
30
30
  parallel: true
31
31
  commands:
32
32
  run-tests:
33
- run: bun test
33
+ run: bun run tests || bun test
34
34
 
35
35
  run-audit:
36
36
  run: bun audit
package/package.json CHANGED
@@ -90,5 +90,5 @@
90
90
  "node": "^26.2.0"
91
91
  },
92
92
  "packageManager": "bun@1.4.0",
93
- "version": "1.7.0"
93
+ "version": "1.8.0"
94
94
  }