Skip to content

Commit

Permalink
test: add ESLint rules from @angular-eslint/template
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SteveBrush committed Aug 6, 2024
1 parent fc631c9 commit dbc83dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .eslintrc-overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,26 @@
{
"files": ["*.html"],
"rules": {
"@angular-eslint/template/button-has-type": ["error"]
"@angular-eslint/template/alt-text": ["warn"],
"@angular-eslint/template/attributes-order": ["warn"],
"@angular-eslint/template/button-has-type": ["error"],
"@angular-eslint/template/conditional-complexity": ["warn"],
"@angular-eslint/template/cyclomatic-complexity": ["warn"],
"@angular-eslint/template/elements-content": ["error"],
"@angular-eslint/template/interactive-supports-focus": ["warn"],
"@angular-eslint/template/label-has-associated-control": ["warn"],
"@angular-eslint/template/no-any": ["error"],
"@angular-eslint/template/no-call-expression": ["warn"],
"@angular-eslint/template/no-distracting-elements": ["warn"],
"@angular-eslint/template/no-inline-styles": ["warn"],
"@angular-eslint/template/no-interpolation-in-attributes": ["warn"],
"@angular-eslint/template/no-positive-tabindex": ["warn"],
"@angular-eslint/template/prefer-control-flow": ["warn"],
"@angular-eslint/template/prefer-ngsrc": ["warn"],
"@angular-eslint/template/prefer-self-closing-tags": ["warn"],
"@angular-eslint/template/role-has-required-aria": ["error"],
"@angular-eslint/template/use-track-by-function": ["warn"],
"@angular-eslint/template/valid-aria": ["error"]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
role="region"
skyId
[attr.aria-label]="tileName"
[attr.aria-labelledBy]="!tileName && titleRef ? tileTitleId : undefined"
[attr.aria-labelledby]="!tileName && titleRef ? tileTitleId : undefined"
[@skyAnimationSlide]="isCollapsed ? 'up' : 'down'"
#tileContent="skyId"
>
Expand Down

0 comments on commit dbc83dc

Please sign in to comment.