Releases: mgechev/codelyzer
Releases · mgechev/codelyzer
4.4.1
4.4.0
Bug Fixes
- no-input-prefix: exact strings not being reported (#597) (1ed8d8c)
- no-input-rename: aria attributes not being allowed to be renamed (#665) (2c905ab), closes #663
- no-input-rename: fix bugs (#585) (75f9de6), closes #580
- no-template-call-expression: not being exported (#582) (ad57552), closes #577
- no-life-cycle-call: fix bugs (#575) (4415cc2), closes #573
- no-input-prefix: not being able to check for multiple concurrent prefixes (#590) (43d415a), closes #589
- no-output-rename: not being reported for some cases (#614) (5e34f41), closes #613
- template-conditional-complexity: not reporting failures for '[ngIf]' (#611) (7fc3b09), closes #607
- template-cyclomatic-complexity: not reporting failures for '[ngForOf]' and '[ngIf]' (#612) (fedd331), closes #609
- trackBy-function: not reporting failures for '[ngForOf]' (#610) (af52912), closes #608
- some rules not considering options correctly (#617) (bce0026)
Features
- import-destructuring-spacing: add fixer (#595) (2acc27b)
- max-inline-declarations: add option to limit animations lines (#569) (25f3e16), closes #568
- rule: add no-queries-parameter rule (#571) (e9f4d23)
- rule: add prefer-inline-decorator rule (#586) (5d5e21d), closes #549
- build scripts are not cross-platform #581 204c8ef, closes #454
- upgrade TypeScript dependency to 2.7.2 #584 d4bf62d, closes #583
- turn on strict TS compilation mode (#631) (da0f553), closes #629
- externalizing template, css visitor abstractions and NgWalker (#658) (b79ea58)
Credits to the codelyzer's maintainers and contributors.
4.3.0
New Rules
max-inline-declarations
which limits the size of inline templates and/or styles. Credits to NagRock #536 174ed46.prefer-output-readonly
requires the@Output
s of a component to bereadonly
. Credits to rafaelss95 #515 3d652d1.no-conflicting-life-cycle-hooks
prevents to implement OnChanges and DoCheck on the same class. Credits to rafaelss95 #560 e521115.enforce-component-selector
Component Selector Required #551 b9c899b. Credits to wKoza.no-life-cycle-call
disallow explicit calls to lifecycle hooks. Credits to rafaelss95 #427 3e10013
Bug Fixes
- Possible bug with no-input-rename #374 f3a53bd.
- Removed dependency on
@angular/platform-browser-dynamic
#525 671e954. - Rule
contextual-life-cycle
too aggressively scoped #545 dcb4b3e. no-output-named-after-standard-event
Does Not Check Output Rename #537 96d9292.- Template Conditional Complexity reports incorrect threshold #533 5851306.
A lot of credits go to rafaelss95, wKoza. The rest of the amazing people who work on codelyzer can be found here.
4.2.1
4.2.0
New Rules
template-cyclomatic-complexity
which limits the estimated Cyclomatic complexity in your templates. Credits to wKoza.template-conditional-complexity
which limits the complexity of boolean expressions inside of your templates. Credits to wKoza.
Features
- Support for Angular version 6 #524 50fa2d6
- Cyclomatic complexity rule
template-cyclomatic-complexity
#514 3221330 - Limiting template condition complexity (rule
template-conditional-complexity
) #508 bb86295 - Complete Rules Status section in README and complete Rules Page #501 1fe9d22
Bug Fixes
4.1.0
Features
- Feature request: no output named after a standard DOM event #473 ae3f07b
- Support for Angular Compiler 5.2 #496 6a6b3de
Bug Fixes
- i18n check-text edge cases #442 4c1c8d4
- Codelyzer hanging for "styles" attribute in Angular component #446 a31c6d2 and 9c90ac3
- no-output-on-prefix incorrectly throws error if output property name starts with "one" #480 9b844cc
Thanks to @gbilodeau for NoOutputNamedAfterStandardEventRule
and wKoza for the code reviews!
4.0.2
4.0.1
4.0.0
Features
- Support for Angular version 5 #409 0217e2d
- Rule for checking the name events without the prefix on https://angular.io/guide/styleguide#dont-prefix-output-properties #449 8f2b4e7.
Enable the new rule by adding the following line in your tslint.json
config file:
"no-output-on-prefix-name": true
Thanks to @eromano for the rule implementation!
Breaking Changes
- The rules
templates-use-public
,no-access-missing-member
,invoke-injectable
andtemplate-to-ng-template
no longer exist. Remove them from yourtslint.json
configuration.