@cosn/tsc

1.23.1 • Public • Published

@cosn/tsc

Sensible defaults I use for my projects.

Installation

pnpm add --save-dev @cosn/tsc

Usage

TypeScript

Create a tsconfig.json file in your project root with the following content:

Server

{
  "extends": ["@cosn/tsc/tsconfig-srv"]
}

Web

{
  "extends": ["@cosn/tsc/tsconfig-web"]
}

Library

{
  "extends": ["@cosn/tsc/tsconfig-lib"]
}

Prettier

Default

Use this config is in your package.json:

"prettier": "@cosn/tsc/prettier",

Customizing

Create a .prettierrc.js file in your project root with the following content:

import defaultConfig from '@cosn/tsc/prettier'

/** @type {import("prettier").Options} */
export default {
  ...defaultConfig,
  // overrides
}

ESLint

Create a eslint.config.js file in your project root with the following content:

import { config as defaultConfig } from '@cosn/tsc/eslint'

/** @type {import("eslint").Linter.Config} */
export default [...defaultConfig]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.23.1146latest

Version History

VersionDownloads (Last 7 Days)Published
1.23.1146
1.23.037
1.22.11
1.22.02
1.21.11
1.21.01
1.20.01
1.19.01
1.18.31
1.18.21
1.18.11
1.18.01
1.17.31
1.17.21
1.17.11
1.17.01
1.16.11
1.16.01
1.15.41
1.15.31
1.15.20
1.15.10
1.15.00
1.14.50
1.14.40
1.14.30
1.14.20
1.14.10
1.14.00
1.13.00
1.12.00
1.11.10
1.11.00
1.10.00
1.9.50
1.9.40
1.9.30
1.9.20
1.9.10
1.9.00
1.8.20
1.8.10
1.8.00
1.7.00
1.6.30
1.6.20
1.6.10
1.6.00
1.5.30
1.5.20
1.5.10
1.5.00
1.4.10
1.4.01
1.3.10
1.3.00
1.2.00
1.1.00
1.0.52
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.1.00
0.0.10

Package Sidebar

Install

npm i @cosn/tsc

Weekly Downloads

205

Version

1.23.1

License

MIT

Unpacked Size

12.7 kB

Total Files

17

Last publish

Collaborators

  • cosn