Skip to content

Commit

Permalink
[ACA-4711] ACA: Enable checking accessibility in eslint (#3231)
Browse files Browse the repository at this point in the history
* [ACA-4711] updated  @angular-eslint/eslint-plugin-template

* [ACA-4711] removed deprecated rules

* [ACA-4711] removed comma

* [ACA-4711] resolve accessibility issues
  • Loading branch information
nikita-web-ua authored May 25, 2023
1 parent 1e37931 commit 5eeb57c
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 89 deletions.
11 changes: 1 addition & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,10 @@
"files": [
"*.html"
],
"extends": ["plugin:@nrwl/nx/angular-template"],
"extends": ["plugin:@nrwl/nx/angular-template", "plugin:@angular-eslint/template/accessibility"],
"rules": {
"@angular-eslint/template/no-autofocus": "error",
"@angular-eslint/template/no-negated-async": "off",
"@angular-eslint/template/no-positive-tabindex": "error",
"@angular-eslint/template/accessibility-alt-text": "error",
"@angular-eslint/template/accessibility-elements-content": "error",
"@angular-eslint/template/accessibility-table-scope": "error",
"@angular-eslint/template/accessibility-valid-aria": "error",
"@angular-eslint/template/click-events-have-key-events": "error",
"@angular-eslint/template/mouse-events-have-key-events": "error",
"@angular-eslint/template/no-distracting-elements": "error",
"@angular-eslint/template/accessibility-label-has-associated-control": "error",
"@angular-eslint/template/eqeqeq": "error"
}
},
Expand Down
Loading

0 comments on commit 5eeb57c

Please sign in to comment.