MOBILE-3744 a11y: Enable aria accessibility linting

main
Pau Ferrer Ocaña 2021-04-29 14:31:47 +02:00
parent 603190c3c5
commit 2a90fda846
3 changed files with 679 additions and 184 deletions

View File

@ -15,7 +15,6 @@ const appConfig = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
'plugin:@angular-eslint/recommended',
'plugin:promise/recommended',
],
@ -90,7 +89,16 @@ const appConfig = {
},
},
],
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/member-ordering': [
'error',
{
default:
{
order: 'as-written',
},
}
],
'@typescript-eslint/naming-convention': [
'error',
{
@ -276,6 +284,13 @@ module.exports = {
extends: ['plugin:@angular-eslint/template/recommended'],
rules: {
'max-len': ['warn', { code: 140 }],
'@angular-eslint/template/accessibility-valid-aria': 'warn',
'@angular-eslint/template/accessibility-alt-text': 'error',
'@angular-eslint/template/accessibility-elements-content': 'error',
'@angular-eslint/template/accessibility-label-for': 'error',
'@angular-eslint/template/no-positive-tabindex': 'error',
'@angular-eslint/template/accessibility-table-scope': 'error',
'@angular-eslint/template/accessibility-valid-aria': 'error',
},
},
{

816
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -126,11 +126,11 @@
"devDependencies": {
"@angular-devkit/architect": "^0.1101.2",
"@angular-devkit/build-angular": "~0.1000.0",
"@angular-eslint/builder": "0.5.0-beta.2",
"@angular-eslint/eslint-plugin": "0.5.0-beta.2",
"@angular-eslint/eslint-plugin-template": "0.5.0-beta.2",
"@angular-eslint/schematics": "^0.5.0-beta.2",
"@angular-eslint/template-parser": "0.5.0-beta.2",
"@angular-eslint/builder": "^4.2.0",
"@angular-eslint/eslint-plugin": "^4.2.0",
"@angular-eslint/eslint-plugin-template": "^4.2.0",
"@angular-eslint/schematics": "^4.2.0",
"@angular-eslint/template-parser": "^4.2.0",
"@angular/cli": "~10.0.5",
"@angular/compiler": "~10.0.0",
"@angular/compiler-cli": "~10.0.0",
@ -141,17 +141,17 @@
"@types/faker": "^5.1.3",
"@types/node": "^12.12.64",
"@types/webpack-env": "^1.16.0",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"check-es-compat": "^1.1.1",
"eslint": "^7.21.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-header": "^3.1.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-jsdoc": "^30.6.3",
"eslint-plugin-prefer-arrow": "^1.2.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsdoc": "^32.3.3",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-promise": "^5.1.0",
"faker": "^5.1.0",
"fs-extra": "^9.1.0",
"gulp": "4.0.2",