@2bad/tsconfig 1.3.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 (2) hide show
  1. package/package.json +1 -1
  2. package/tsconfig.json +13 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2bad/tsconfig",
3
- "version": "1.3.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
 
@@ -79,6 +80,7 @@
79
80
 
80
81
  /* Type Checking */
81
82
  "strict": true /* Enable all strict type-checking options. */,
83
+ // START - ENABLED BY SETTING STRICT TO TRUE
82
84
  // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
83
85
  // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
84
86
  // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -87,16 +89,17 @@
87
89
  // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
88
90
  // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
89
91
  // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
90
- // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
91
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
92
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
93
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
94
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
95
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
96
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
97
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
98
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
99
- // "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. */
100
103
 
101
104
  /* Completeness */
102
105
  // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */