@cosn/tsc

1.27.2 • 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.27.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.27.20
1.27.1382
1.27.031
1.26.05
1.25.12
1.25.00
1.24.40
1.24.31
1.24.20
1.24.10
1.24.00
1.23.10
1.23.00
1.22.10
1.22.00
1.21.10
1.21.00
1.20.00
1.19.00
1.18.30
1.18.20
1.18.10
1.18.00
1.17.30
1.17.20
1.17.10
1.17.00
1.16.10
1.16.00
1.15.40
1.15.30
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.00
1.3.10
1.3.00
1.2.00
1.1.00
1.0.50
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

416

Version

1.27.2

License

MIT

Unpacked Size

13.4 kB

Total Files

17

Last publish

Collaborators

  • cosn