UNPKG

jsii

Version:

[![Join the chat at https://cdk.Dev](https://img.shields.io/static/v1?label=Slack&message=cdk.dev&color=brightgreen&logo=slack)](https://cdk.dev) [![Build Status](https://github.com/aws/jsii-compiler/workflows/build/badge.svg)](https://github.com/aws/jsii

24 lines 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const validator_1 = require("../validator"); // A rule set for deprecated compilerOptions that should not be used with jsii. // These options are deprecated in TypeScript 6.0 and will be removed in TypeScript 7.0. // This is an internal rule set, that may be used by other rule sets. const deprecatedOptions = new validator_1.RuleSet(); deprecatedOptions.shouldPass('prepend', validator_1.Match.MISSING); deprecatedOptions.shouldPass('downlevelIteration', validator_1.Match.MISSING); deprecatedOptions.shouldPass('outFile', validator_1.Match.MISSING); deprecatedOptions.shouldPass('baseUrl', validator_1.Match.MISSING); // esModuleInterop: false and allowSyntheticDefaultImports: false are deprecated deprecatedOptions.shouldPass('esModuleInterop', validator_1.Match.optional(validator_1.Match.TRUE)); deprecatedOptions.shouldPass('allowSyntheticDefaultImports', validator_1.Match.optional(validator_1.Match.TRUE)); // alwaysStrict: false is deprecated deprecatedOptions.shouldPass('alwaysStrict', validator_1.Match.optional(validator_1.Match.TRUE)); // target: es5 is deprecated deprecatedOptions.shouldFail('target', validator_1.Match.eq('es5')); // Deprecated module values: amd, umd, systemjs, none deprecatedOptions.shouldFail('module', validator_1.Match.oneOf('amd', 'umd', 'systemjs', 'none')); // Deprecated moduleResolution values: node (node10), classic deprecatedOptions.shouldFail('moduleResolution', validator_1.Match.oneOf('node', 'node10', 'classic')); exports.default = deprecatedOptions; //# sourceMappingURL=deprecated-options.js.map