MOBILE-3744 a11y: Enable aria accessibility linting
parent
603190c3c5
commit
2a90fda846
19
.eslintrc.js
19
.eslintrc.js
|
@ -15,7 +15,6 @@ const appConfig = {
|
||||||
'eslint:recommended',
|
'eslint:recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'prettier',
|
'prettier',
|
||||||
'prettier/@typescript-eslint',
|
|
||||||
'plugin:@angular-eslint/recommended',
|
'plugin:@angular-eslint/recommended',
|
||||||
'plugin:promise/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': [
|
'@typescript-eslint/naming-convention': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
@ -276,6 +284,13 @@ module.exports = {
|
||||||
extends: ['plugin:@angular-eslint/template/recommended'],
|
extends: ['plugin:@angular-eslint/template/recommended'],
|
||||||
rules: {
|
rules: {
|
||||||
'max-len': ['warn', { code: 140 }],
|
'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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
|
@ -126,11 +126,11 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/architect": "^0.1101.2",
|
"@angular-devkit/architect": "^0.1101.2",
|
||||||
"@angular-devkit/build-angular": "~0.1000.0",
|
"@angular-devkit/build-angular": "~0.1000.0",
|
||||||
"@angular-eslint/builder": "0.5.0-beta.2",
|
"@angular-eslint/builder": "^4.2.0",
|
||||||
"@angular-eslint/eslint-plugin": "0.5.0-beta.2",
|
"@angular-eslint/eslint-plugin": "^4.2.0",
|
||||||
"@angular-eslint/eslint-plugin-template": "0.5.0-beta.2",
|
"@angular-eslint/eslint-plugin-template": "^4.2.0",
|
||||||
"@angular-eslint/schematics": "^0.5.0-beta.2",
|
"@angular-eslint/schematics": "^4.2.0",
|
||||||
"@angular-eslint/template-parser": "0.5.0-beta.2",
|
"@angular-eslint/template-parser": "^4.2.0",
|
||||||
"@angular/cli": "~10.0.5",
|
"@angular/cli": "~10.0.5",
|
||||||
"@angular/compiler": "~10.0.0",
|
"@angular/compiler": "~10.0.0",
|
||||||
"@angular/compiler-cli": "~10.0.0",
|
"@angular/compiler-cli": "~10.0.0",
|
||||||
|
@ -141,17 +141,17 @@
|
||||||
"@types/faker": "^5.1.3",
|
"@types/faker": "^5.1.3",
|
||||||
"@types/node": "^12.12.64",
|
"@types/node": "^12.12.64",
|
||||||
"@types/webpack-env": "^1.16.0",
|
"@types/webpack-env": "^1.16.0",
|
||||||
"@typescript-eslint/eslint-plugin": "4.3.0",
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
||||||
"@typescript-eslint/parser": "4.3.0",
|
"@typescript-eslint/parser": "^4.22.0",
|
||||||
"check-es-compat": "^1.1.1",
|
"check-es-compat": "^1.1.1",
|
||||||
"eslint": "^7.21.0",
|
"eslint": "^7.25.0",
|
||||||
"eslint-config-prettier": "^6.12.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-header": "^3.1.0",
|
"eslint-plugin-header": "^3.1.1",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.22.1",
|
||||||
"eslint-plugin-jest": "^24.1.0",
|
"eslint-plugin-jest": "^24.3.6",
|
||||||
"eslint-plugin-jsdoc": "^30.6.3",
|
"eslint-plugin-jsdoc": "^32.3.3",
|
||||||
"eslint-plugin-prefer-arrow": "^1.2.2",
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^5.1.0",
|
||||||
"faker": "^5.1.0",
|
"faker": "^5.1.0",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^9.1.0",
|
||||||
"gulp": "4.0.2",
|
"gulp": "4.0.2",
|
||||||
|
|
Loading…
Reference in New Issue