Skip to content

Commit 0afee00

Browse files
committed
fix(tools): modify/improve comments in custom docs-private-hostbinding-lifecycle eslint rule
1 parent 1a9e838 commit 0afee00

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tools/eslint/custom-rules/docs-private-hostbinding-lifecycle.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* * @docs-private
88
* *\/
99
*
10-
* above every @HostBinding() member and Angular lifecycle hook.
10+
* above every @HostBinding() member and Angular lifecycle method.
1111
*/
12-
1312
'use strict';
1413

1514
const LIFECYCLE_HOOKS = new Set([
@@ -29,7 +28,7 @@ function hasDocsPrivate(src, node) {
2928

3029
/**
3130
* Returns (`indent`, `eol`) for the line where `node` starts
32-
* indenting should be irrelevant as there are existing eslint rules that can resolve indenting issues
31+
* - indenting should be irrelevant as there are existing eslint rules that can resolve indenting issues
3332
*/
3433
function indentAndEol(src, node) {
3534
const full = src.getText();
@@ -44,7 +43,6 @@ function indentAndEol(src, node) {
4443

4544
/**
4645
* Returns true if the decorators array contains a @HostBinding() decorator.
47-
* Accepts `undefined` or empty arrays and safely short-circuits.
4846
*/
4947
function isHostBinding(decorators = []) {
5048
return decorators.some(

0 commit comments

Comments
 (0)