Skip to content

Instantly share code, notes, and snippets.

@SimonGenin
Forked from ryanatkn/tsconfig.json
Created October 15, 2020 15:40
Show Gist options
  • Save SimonGenin/64cb8dab45ae131a8ed86e080ecf7a78 to your computer and use it in GitHub Desktop.
Save SimonGenin/64cb8dab45ae131a8ed86e080ecf7a78 to your computer and use it in GitHub Desktop.

Revisions

  1. @ryanatkn ryanatkn revised this gist Jan 31, 2020. 1 changed file with 20 additions and 21 deletions.
    41 changes: 20 additions & 21 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,13 @@
    {
    // Commented-out options have their default values.
    // A lot of the organization could still be improved - suggestions are welcome.
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` specifying projects to reference. https://www.typescriptlang.org/docs/handbook/project-references.html
    // "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.

    "compilerOptions": {

    // Main options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    "module": "esnext", // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
    @@ -19,7 +17,19 @@
    // "outFile": "./", // Concatenate and emit output to single file.
    // "outDir": "./", // Redirect output structure to the directory.
    // "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with `--outDir`.
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html
    // "project": "", // Compile a project given a valid configuration file.

    // Compilation options
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    // "listEmittedFiles": false, // Print names of generated files part of the compilation.
    // "listFiles": true, // Print names of files part of the compilation.
    // "noErrorTruncation": false, // Do not truncate error messages.
    // "preserveWatchOutput": false, // Keep outdated console output in watch mode instead of clearing the screen.
    // "traceResolution": false, // Enable tracing of the name resolution process.
    // "tsBuildInfoFile": ".tsbuildinfo", // Specify file to store incremental compilation information.

    // Strict typechecking options
    "strict": true, // Enable all strict type-checking options.
    @@ -52,7 +62,6 @@
    // "typeRoots": [], // List of folders to include type definitions from.
    "types": [], // Type declaration files to be included in compilation.
    // "allowSyntheticDefaultImports": false // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "esModuleInterop": false, // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "preserveSymlinks": false, // Do not resolve the real path of symlinks.
    @@ -73,6 +82,8 @@
    // "noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
    // "preserveConstEnums": false, // Do not erase const enum declarations in generated code.
    // "removeComments": false, // Remove all comments except copy-right header comments beginning with //!
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.

    // Source map options
    // "sourceMap": false, // Generates corresponding '.map' file.
    @@ -81,29 +92,17 @@
    // "inlineSourceMap": true, // Emit a single file with source maps instead of having a separate file.
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    // "listEmittedFiles": false, // Print names of generated files part of the compilation.
    // "listFiles": true, // Print names of files part of the compilation.
    // "noErrorTruncation": false, // Do not truncate error messages.
    // "preserveWatchOutput": false, // Keep outdated console output in watch mode instead of clearing the screen.
    // "traceResolution": false, // Enable tracing of the name resolution process.
    // "tsBuildInfoFile": ".tsbuildinfo", // Specify file to store incremental compilation information.

    // JSX options
    // "jsx": "preserve", // Specify JSX code generation: 'preserve', 'react-native', or 'react'.
    // "jsxFactory": "React.createElement", // Specify the JSX factory function to use when targeting react JSX emit, e.g. 'React.createElement' or 'h'.

    // Other options
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "charset": "utf8", // The character set of the input files.
    // "downlevelIteration": false, // Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "keyofStringsOnly": false, // Resolve 'keyof' to string valued property names only (no numbers or symbols).
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "pretty": true, // Stylize errors and messages using color and context.

    // Experimental options
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.
    }
    }
    }
  2. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
    // "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` specifying projects to reference. https://www.typescriptlang.org/docs/handbook/project-references.html
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.

    "compilerOptions": {
    @@ -19,9 +19,6 @@
    // "outFile": "./", // Concatenate and emit output to single file.
    // "outDir": "./", // Redirect output structure to the directory.
    // "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with `--outDir`.

    // Project options
    // "project": "", // Compile a project given a valid configuration file.
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html

    // Strict typechecking options
  3. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,10 @@
    // "outFile": "./", // Concatenate and emit output to single file.
    // "outDir": "./", // Redirect output structure to the directory.
    // "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with `--outDir`.

    // Project options
    // "project": "", // Compile a project given a valid configuration file.
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html

    // Strict typechecking options
    "strict": true, // Enable all strict type-checking options.
    @@ -52,6 +55,7 @@
    // "typeRoots": [], // List of folders to include type definitions from.
    "types": [], // Type declaration files to be included in compilation.
    // "allowSyntheticDefaultImports": false // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "esModuleInterop": false, // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "preserveSymlinks": false, // Do not resolve the real path of symlinks.
    @@ -81,7 +85,6 @@
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    @@ -97,12 +100,11 @@
    // "jsxFactory": "React.createElement", // Specify the JSX factory function to use when targeting react JSX emit, e.g. 'React.createElement' or 'h'.

    // Other options
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "downlevelIteration": false, // Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "pretty": true, // Stylize errors and messages using color and context.

    // Experimental options
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.
  4. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -98,10 +98,8 @@

    // Other options
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "charset": "utf8", // The character set of the input files.
    // "downlevelIteration": false, // Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "keyofStringsOnly": false, // Resolve 'keyof' to string valued property names only (no numbers or symbols).
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "pretty": true, // Stylize errors and messages using color and context.

  5. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -96,10 +96,6 @@
    // "jsx": "preserve", // Specify JSX code generation: 'preserve', 'react-native', or 'react'.
    // "jsxFactory": "React.createElement", // Specify the JSX factory function to use when targeting react JSX emit, e.g. 'React.createElement' or 'h'.

    // Experimental options
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.

    // Other options
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "charset": "utf8", // The character set of the input files.
    @@ -108,5 +104,9 @@
    // "keyofStringsOnly": false, // Resolve 'keyof' to string valued property names only (no numbers or symbols).
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "pretty": true, // Stylize errors and messages using color and context.

    // Experimental options
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.
    }
    }
  6. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "references": [], // An array of objects `{path: ""}` that specifies projects to reference.
    // "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.

    "compilerOptions": {
  7. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "references": [], // An array of objects `{path: ""}` that specifies projects to reference.
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.

    "compilerOptions": {
  8. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@

    "compilerOptions": {

    // Basic options
    // Main options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    "module": "esnext", // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
    "lib": ["esnext", "dom"], // Specify library files to be included in the compilation.
  9. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,9 @@
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.

    "compilerOptions": {

    // Basic options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    "module": "esnext", // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
    @@ -18,15 +20,15 @@
    // "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with `--outDir`.
    // "project": "", // Compile a project given a valid configuration file.

    // Strict type-checking options
    // Strict typechecking options
    "strict": true, // Enable all strict type-checking options.
    // "noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type.
    // "noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type.
    // "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file.
    // "strictBindCallApply": true, // Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
    // "strictFunctionTypes": true, // Disable bivariant parameter checking for function types.
    // "strictNullChecks": true, // In strict null checking mode, the null and undefined values are not in the domain of every type and are only assignable to themselves and any.
    // "strictPropertyInitialization": true, // Ensure non-undefined class properties are initialized in the constructor. This option requires `--strictNullChecks` be enabled in order to take effect.
    // "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file.

    // Additional checks
    // "allowUnreachableCode": false, // Do not report errors on unreachable code.
    @@ -78,7 +80,7 @@
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "composite": true, // Enable project compilation.
    // "composite": true, // Enable project compilation: https://www.typescriptlang.org/docs/handbook/project-references.html
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
  10. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    // A lot of the organization could still be improved - suggestions are welcome.
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include
    // "extends": "", // A string containing a path to another configuration file to inherit from
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving
    // "files": [], // A list of relative or absolute file paths to include.
    // "extends": "", // A string containing a path to another configuration file to inherit from.
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.
    "compilerOptions": {
    // Basic options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    @@ -78,7 +78,7 @@
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "composite": true, // Enable project compilation
    // "composite": true, // Enable project compilation.
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
  11. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,9 @@
    // A lot of the organization could still be improved - suggestions are welcome.
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    // "files": [], // A list of relative or absolute file paths to include
    // "extends": "", // A string containing a path to another configuration file to inherit from
    // "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving
    "compilerOptions": {
    // Basic options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    @@ -49,7 +52,7 @@
    // "esModuleInterop": false, // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "preserveSymlinks": false, // Do not resolve the real path of symlinks.
    "resolveJsonModule": true, // Include modules imported with '.json' extension.
    "resolveJsonModule": true // Include modules imported with '.json' extension.

    // Emit options
    // "declaration": false, // Generates corresponding '.d.ts' file.
    @@ -66,7 +69,7 @@
    // "noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
    // "preserveConstEnums": false, // Do not erase const enum declarations in generated code.
    // "removeComments": false, // Remove all comments except copy-right header comments beginning with //!

    // Source map options
    // "sourceMap": false, // Generates corresponding '.map' file.
    // "sourceRoot": "", // Specify the location where debugger should locate TypeScript files instead of source locations.
    @@ -103,4 +106,4 @@
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "pretty": true, // Stylize errors and messages using color and context.
    }
    }
    }
  12. @ryanatkn ryanatkn revised this gist Jun 25, 2019. 1 changed file with 15 additions and 13 deletions.
    28 changes: 15 additions & 13 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    {
    // Commented-out options have their default values
    // Commented-out options have their default values.
    // A lot of the organization could still be improved - suggestions are welcome.
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    "compilerOptions": {
    @@ -43,23 +44,29 @@
    // "paths": {}, // A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.
    // "rootDirs": [], // List of root folders whose combined content represents the structure of the project at runtime.
    // "typeRoots": [], // List of folders to include type definitions from.
    "types": [] // Type declaration files to be included in compilation.
    "types": [], // Type declaration files to be included in compilation.
    // "allowSyntheticDefaultImports": false // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
    // "esModuleInterop": false, // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "preserveSymlinks": false, // Do not resolve the real path of symlinks.
    // "resolveJsonModule": false, // Include modules imported with '.json' extension.
    "resolveJsonModule": true, // Include modules imported with '.json' extension.

    // Emit options
    // "declaration": false, // Generates corresponding '.d.ts' file.
    // "declarationDir": "./", // Output directory for generated declaration files.
    // "declarationMap": false, // Generates a sourcemap for each corresponding '.d.ts' file.
    // "emitBOM": false, // Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
    // "emitDeclarationOnly": false, // Only emit ‘.d.ts’ declaration files.
    // "importHelpers": false, // Import emit helpers from 'tslib'.
    // "newLine": "LF", // Use the specified end of line sequence to be used when emitting files: "crlf" (windows) or "lf" (unix).”
    // "noEmit": true, // Do not emit outputs.
    // "noEmitHelpers": false, // Do not generate custom helper functions like __extends in compiled output.
    // "noEmitOnError": false, // Do not emit outputs if any errors were reported.
    // "noImplicitUseStrict": false, // Do not emit "use strict" directives in module output.
    // "noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
    // "preserveConstEnums": false, // Do not erase const enum declarations in generated code.
    // "removeComments": false, // Remove all comments except copy-right header comments beginning with //!

    // Source map options
    // "sourceMap": false, // Generates corresponding '.map' file.
    // "sourceRoot": "", // Specify the location where debugger should locate TypeScript files instead of source locations.
    @@ -68,9 +75,10 @@
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "diagnostics": false, // Show diagnostic information.
    // "composite": true, // Enable project compilation
    // "diagnostics": false, // Show diagnostic information.
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    // "listEmittedFiles": false, // Print names of generated files part of the compilation.
    // "listFiles": true, // Print names of files part of the compilation.
    // "noErrorTruncation": false, // Do not truncate error messages.
    @@ -87,18 +95,12 @@
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.

    // Other options
    // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
    // "charset": "utf8", // The character set of the input files.
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "downlevelIteration": false, // Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.
    // "emitBOM": false, // Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
    // "emitDeclarationOnly": false, // Only emit ‘.d.ts’ declaration files.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "keyofStringsOnly": false, // Resolve 'keyof' to string valued property names only (no numbers or symbols).
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "newLine": "LF", // Use the specified end of line sequence to be used when emitting files: "crlf" (windows) or "lf" (unix).”
    // "noImplicitUseStrict": false, // Do not emit "use strict" directives in module output.
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
    // "pretty": true, // Stylize errors and messages using color and context.
    }
    }
  13. @ryanatkn ryanatkn revised this gist Jun 24, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    {
    // Commented-out options have their default values
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    "compilerOptions": {
  14. @ryanatkn ryanatkn revised this gist Jun 24, 2019. No changes.
  15. @ryanatkn ryanatkn created this gist Jun 24, 2019.
    103 changes: 103 additions & 0 deletions tsconfig.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,103 @@
    {
    "include": ["src/**/*"],
    "exclude": ["node_modules/*"],
    "compilerOptions": {
    // Basic options
    "target": "esnext", // Specify ECMAScript target version: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017','es2018' or 'esnext'.
    "module": "esnext", // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
    "lib": ["esnext", "dom"], // Specify library files to be included in the compilation.
    // "allowJs": false, // Allow javascript files to be compiled.
    // "checkJs": false, // Report errors in .js files.
    // "outFile": "./", // Concatenate and emit output to single file.
    // "outDir": "./", // Redirect output structure to the directory.
    // "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with `--outDir`.
    // "project": "", // Compile a project given a valid configuration file.

    // Strict type-checking options
    "strict": true, // Enable all strict type-checking options.
    // "noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type.
    // "noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type.
    // "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file.
    // "strictBindCallApply": true, // Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
    // "strictFunctionTypes": true, // Disable bivariant parameter checking for function types.
    // "strictNullChecks": true, // In strict null checking mode, the null and undefined values are not in the domain of every type and are only assignable to themselves and any.
    // "strictPropertyInitialization": true, // Ensure non-undefined class properties are initialized in the constructor. This option requires `--strictNullChecks` be enabled in order to take effect.

    // Additional checks
    // "allowUnreachableCode": false, // Do not report errors on unreachable code.
    // "allowUnusedLabels": false, // Do not report errors on unused labels.
    "forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
    // "noStrictGenericChecks": false, // Disable strict checking of generic signatures in function types.
    "noUnusedLocals": true, // Report errors on unused locals.
    "noUnusedParameters": true, // Report errors on unused parameters.
    "noImplicitReturns": true, // Report error when not all code paths in function return a value.
    "noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement.
    // "skipLibCheck": false, // Skip type checking of all declaration files (*.d.ts).
    // "suppressExcessPropertyErrors": false, // Suppress excess property checks for object literals.
    // "suppressImplicitAnyIndexErrors": false, // Suppress noImplicitAny errors for indexing objects lacking index signatures.

    // Module resolution options
    "moduleResolution": "node", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
    // "baseUrl": "./", // Base directory to resolve non-absolute module names.
    // "paths": {}, // A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.
    // "rootDirs": [], // List of root folders whose combined content represents the structure of the project at runtime.
    // "typeRoots": [], // List of folders to include type definitions from.
    "types": [] // Type declaration files to be included in compilation.
    // "allowSyntheticDefaultImports": false // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
    // "esModuleInterop": false, // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
    // "preserveSymlinks": false, // Do not resolve the real path of symlinks.
    // "resolveJsonModule": false, // Include modules imported with '.json' extension.

    // Emit options
    // "declaration": false, // Generates corresponding '.d.ts' file.
    // "declarationDir": "./", // Output directory for generated declaration files.
    // "declarationMap": false, // Generates a sourcemap for each corresponding '.d.ts' file.
    // "importHelpers": false, // Import emit helpers from 'tslib'.
    // "noEmit": true, // Do not emit outputs.
    // "noEmitHelpers": false, // Do not generate custom helper functions like __extends in compiled output.
    // "noEmitOnError": false, // Do not emit outputs if any errors were reported.
    // "preserveConstEnums": false, // Do not erase const enum declarations in generated code.
    // "removeComments": false, // Remove all comments except copy-right header comments beginning with //!

    // Source map options
    // "sourceMap": false, // Generates corresponding '.map' file.
    // "sourceRoot": "", // Specify the location where debugger should locate TypeScript files instead of source locations.
    // "mapRoot": "", // Specify the location where debugger should locate map files instead of generated locations.
    // "inlineSourceMap": true, // Emit a single file with source maps instead of having a separate file.
    // "inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.

    // Compilation options
    // "diagnostics": false, // Show diagnostic information.
    // "composite": true, // Enable project compilation
    // "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk.
    // "listEmittedFiles": false, // Print names of generated files part of the compilation.
    // "listFiles": true, // Print names of files part of the compilation.
    // "noErrorTruncation": false, // Do not truncate error messages.
    // "preserveWatchOutput": false, // Keep outdated console output in watch mode instead of clearing the screen.
    // "traceResolution": false, // Enable tracing of the name resolution process.
    // "tsBuildInfoFile": ".tsbuildinfo", // Specify file to store incremental compilation information.

    // JSX options
    // "jsx": "preserve", // Specify JSX code generation: 'preserve', 'react-native', or 'react'.
    // "jsxFactory": "React.createElement", // Specify the JSX factory function to use when targeting react JSX emit, e.g. 'React.createElement' or 'h'.

    // Experimental options
    // "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
    // "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.

    // Other options
    // "charset": "utf8", // The character set of the input files.
    // "disableSizeLimit": false, // Disable size limitation on JavaScript project.
    // "downlevelIteration": false, // Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.
    // "emitBOM": false, // Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
    // "emitDeclarationOnly": false, // Only emit ‘.d.ts’ declaration files.
    // "isolatedModules": false, // Transpile each file as a separate module (similar to 'ts.transpileModule').
    // "keyofStringsOnly": false, // Resolve 'keyof' to string valued property names only (no numbers or symbols).
    // "maxNodeModuleJsDepth": 0, // The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
    // "newLine": "LF", // Use the specified end of line sequence to be used when emitting files: "crlf" (windows) or "lf" (unix).”
    // "noImplicitUseStrict": false, // Do not emit "use strict" directives in module output.
    // "noLib": false, // Do not include the default library file (lib.d.ts).
    // "noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
    // "pretty": true, // Stylize errors and messages using color and context.
    }
    }