@lcdev/tsconfig

0.1.3 • Public • Published

Shared TS Config

This package sets strict mode, some reasonable defaults for target and lib, and works in composite projects.

yarn add @lcdev/tsconfig@0.1

Add to your tsconfig.json:

"extends": "@lcdev/tsconfig"

You probably want to keep rootDir and outDir, and maybe target if you want es2015.

A normal tsconfig looks like this:

{
  "extends": "@lcdev/tsconfig",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}

A normal web(pack) tsconfig looks like this:

{
  "extends": "@lcdev/tsconfig",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist",
    "lib": ["esnext", "dom"],
    "target": "esnext",
    "module": "esnext",
    "jsx": "preserve",
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lcdev/tsconfig

Weekly Downloads

62

Version

0.1.3

License

MPL-2.0

Unpacked Size

1.61 kB

Total Files

3

Last publish

Collaborators

  • jbrandtlc
  • joelgallant-me
  • servalldev
  • gregnr