0.1.3 • Published 4 years ago

@lcdev/tsconfig v0.1.3

Weekly downloads
381
License
MPL-2.0
Repository
-
Last release
4 years ago

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"]
}
0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago