@cosn/tsc v1.25.0
@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]
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
9 months ago
11 months ago
11 months ago
1 year ago
1 year ago
11 months ago
1 year ago
11 months ago
11 months ago
12 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago