@2bad/tsconfig 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
  3. package/tsconfig.json +17 -13
package/README.md CHANGED
@@ -16,7 +16,8 @@ $ npm install --save-dev @2bad/tsconfig
16
16
  {
17
17
  "extends": "@2bad/tsconfig",
18
18
  "compilerOptions": {
19
- "outDir": "dist"
20
- }
19
+ "outDir": "build"
20
+ },
21
+ "include": ["source", "test"]
21
22
  }
22
23
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2bad/tsconfig",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Shared TypeScript config",
5
5
  "keywords": [
6
6
  "tsconfig",
package/tsconfig.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
2
3
  "compilerOptions": {
3
4
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
5
 
@@ -29,9 +30,10 @@
29
30
  // "rootDir": "source", /* Specify the root folder within your source files. */
30
31
  "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
32
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
- "paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
33
- "~/*": ["source/*"]
34
- },
33
+ // since module names are considered resource identifiers and are not changed by the compiler this setting is pointless
34
+ // "paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
35
+ // "~/*": ["source/*"]
36
+ // },
35
37
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
36
38
  // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
37
39
  // "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -78,6 +80,7 @@
78
80
 
79
81
  /* Type Checking */
80
82
  "strict": true /* Enable all strict type-checking options. */,
83
+ // START - ENABLED BY SETTING STRICT TO TRUE
81
84
  // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
82
85
  // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
83
86
  // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -86,16 +89,17 @@
86
89
  // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
87
90
  // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
88
91
  // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
89
- // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
90
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
91
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
92
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
93
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
94
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
95
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
96
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
97
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
98
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
92
+ // END - ENABLED BY SETTING STRICT TO TRUE
93
+ "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
94
+ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
95
+ "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
96
+ "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
97
+ "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
98
+ "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
99
+ "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
100
+ "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
101
+ "allowUnusedLabels": false, /* Disable error reporting for unused labels. */
102
+ "allowUnreachableCode": false, /* Disable error reporting for unreachable code. */
99
103
 
100
104
  /* Completeness */
101
105
  // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */