v0.21.0
- TypeScript v3.1 and v3.2 is no longer officially supported
- Node.js v6 is no longer supported
Rule.supportscan now return a string respresenting the reason for not supporting the fileLinter#lintAndFixnow requires aProgramFactoryinstead ofProgramLinter#lintAndFixUpdateFileCallbackis now expected to only return aSourceFileno-inferred-empty-objectwas renamed tono-uninferred-type-parameter
Features:
- rules now debuglog the reason for not supporting a certain file
- performance improvements
- when linting with
--project --references- parsed
tsconfig.jsonfiles are cached for all project references
- parsed
- when linting with
--project --fix- the project's dependency graph is recalculated lazily the next time a typed rule reuqests type information after fixing a file
- module resolutions are cached between fixes
- when linting with
no-uninferred-type-parameterproperly handles new default constraintunknownno-uninferred-type-parameternow detects uninferred type parameters in JS code falling back toanyno-uninferred-type-parametercorrectly handles higher order function typesno-useless-initializerchecks array destructuring- better handling of computed property names
- better handling of object and array destructuring assignments
Bugfixes:
- comments are now included in the transpiled code and declaration files, this makes JSDoc and deprecations visible to API consumers