@tommy-mitchell/configs
v0.5.0
Published
Various configs.
Maintainers
Readme
@tommy-mitchell/configs
Various configs:
Install
npm install --save-dev @tommy-mitchell/configsyarn add --dev @tommy-mitchell/configspnpm add --save-dev @tommy-mitchell/configsUsage
TypeScript
See @tommy-mitchell/tsconfig for more info.
In tsconfig.json:
{
"extends": "@tommy-mitchell/configs/ts",
"compilerOptions": {/* … */}
}Node
{
"extends": "@tommy-mitchell/configs/ts/node",
}Vite
{
"extends": "@tommy-mitchell/configs/ts/vite",
}xo
See @tommy-mitchell/eslint-config-xo for more info.
In xo.config.js:
import * as configs from "@tommy-mitchell/configs/xo";
/** @type {import('xo').FlatXoConfig} */
export default [...configs.xo, ...configs.dprint];dprint
See @tommy-mitchell/dprint-config for more info.
In dprint.json(c):
{
"extends": "npm:@tommy-mitchell/configs/dprint",
}tsdown
In tsdown.config.ts:
import { defineConfig } from "tsdown";
import config from "@tommy-mitchell/configs/tsdown";
export default defineConfig(config);Or to only bundle .d.ts files:
import { defineConfig } from "tsdown";
import { dts } from "@tommy-mitchell/configs/tsdown";
export default defineConfig(dts);