typescript-strictly-typed
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "typescript-strictly-typed", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Enable configurations for strictly typed TypeScript, ESLint or TSLint, and optionally Angular.", | ||
@@ -53,10 +53,10 @@ "funding": { | ||
"@types/minimist": "1.2.0", | ||
"@types/node": "12.12.24", | ||
"@typescript-eslint/eslint-plugin": "2.15.0", | ||
"@typescript-eslint/parser": "2.15.0", | ||
"copyfiles": "2.1.1", | ||
"@types/node": "12.12.25", | ||
"@typescript-eslint/eslint-plugin": "2.17.0", | ||
"@typescript-eslint/parser": "2.17.0", | ||
"copyfiles": "2.2.0", | ||
"eslint": "6.8.0", | ||
"rimraf": "3.0.0", | ||
"typescript": "3.7.4" | ||
"typescript": "3.7.5" | ||
} | ||
} |
@@ -130,4 +130,8 @@ # TypeScript Strictly Typed | ||
### Changelog | ||
[Changelog available here](./CHANGELOG.md). | ||
## License | ||
MIT |
@@ -26,4 +26,26 @@ "use strict"; | ||
config.compilerOptions.strict = true; | ||
/* Clean up options included in strict mode */ | ||
if (config.compilerOptions.alwaysStrict) { | ||
delete config.compilerOptions.alwaysStrict; | ||
} | ||
if (config.compilerOptions.noImplicitAny) { | ||
delete config.compilerOptions.noImplicitAny; | ||
} | ||
if (config.compilerOptions.noImplicitThis) { | ||
delete config.compilerOptions.noImplicitThis; | ||
} | ||
if (config.compilerOptions.strictBindCallApply) { | ||
delete config.compilerOptions.strictBindCallApply; | ||
} | ||
if (config.compilerOptions.strictFunctionTypes) { | ||
delete config.compilerOptions.strictFunctionTypes; | ||
} | ||
if (config.compilerOptions.strictNullChecks) { | ||
delete config.compilerOptions.strictNullChecks; | ||
} | ||
if (config.compilerOptions.strictPropertyInitialization) { | ||
delete config.compilerOptions.strictPropertyInitialization; | ||
} | ||
return config_utils_1.saveConfig(cwd, file, config); | ||
} | ||
exports.default = enableTypescriptStrict; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21789
379
137