1.1.0 • Published 10 months ago

@selfage/tsconfig v1.1.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
10 months ago

@selfage/tsconfig

Overview

Provides a opinionated but consistent tsconfig file across all @selfage packages.

Highlight

  1. Compile to ES6 and compile incrementally.
  2. No --strictNullChecks because it might give false impression that we are safe from null pointer exceptions at runtime. I.e., every type is implicitly an union with undefined | null.
  3. Inline source map and inline source to avoid serving source map/source files when mapping is requested from browsers, with the downside of larger JS file.

Usage

Add extends: "@selfage/tsconfig" to your tsconfig.json.

Full compiler options

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "alwaysStrict": true,
    "noImplicitAny": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "inlineSourceMap": true,
    "inlineSources": true,
    "skipLibCheck": true,
    "declaration": true,
    "incremental": true
  }
}

Note to dependents

You might want to add "skipLibCheck": true to your tsconfig.json, if you are depending on @selfage packages and not depending on @selfage/tsconfig, in case of incompatible compiler options.

1.1.0

10 months ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago