@wildpeaks/tsconfig

4.0.0 • Public • Published

Typescript Config

Github Release

Typescript settings for ES2020 sources transpiled to ES2017 ES Modules.


Quickstart

Install dependency:

npm install @wildpeaks/tsconfig

Use in tsconfig.json:

{
	// Reference the shared config
	"extends": "@wildpeaks/tsconfig",

	// Override settings to fit your project
	"compilerOptions": {
		"lib": ["es2020", "dom"],
		"types": ["node", "webpack-env"],

		"jsx": "react-jsx",
		"jsxImportSource": "preact"
	},

	// If you run Mocha tests via ts-node,
	// you can make ts-node transpile to CJS
	// even if your project targets ESM
	"ts-node": {
		"skipIgnore": true,
		"transpileOnly": true,
		"compilerOptions": {
			"module": "CommonJS"
		}
	}
}

Package Sidebar

Install

npm i @wildpeaks/tsconfig

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

1.73 kB

Total Files

3

Last publish

Collaborators

  • cecilemuller