Adding a11y rules from tslint-microsoft-contrib to tslint (#26888) (#27379)

This commit is contained in:
Bhavya RM 2018-12-18 07:13:20 -05:00 committed by GitHub
parent 2144b24cbd
commit 61d6b804cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

View file

@ -409,6 +409,7 @@
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-plugin-prettier": "^2.0.0",
"tslint-microsoft-contrib": "^6.0.0",
"typescript": "^3.0.3",
"vinyl-fs": "^3.0.2",
"xml2js": "^0.4.19",

View file

@ -2,15 +2,34 @@ extends:
- tslint:recommended
- tslint-config-prettier
rulesDirectory:
- tslint-plugin-prettier
- src/dev/tslint/rules
- node_modules/tslint-microsoft-contrib
rules:
prettier: true
object-literal-sort-keys: false
interface-name: false
no-default-export: true
react-a11y-anchors: true
react-a11y-aria-unsupported-elements: true
react-a11y-event-has-role: true
react-a11y-image-button-has-alt: true
react-a11y-img-has-alt: true
react-a11y-input-elements: true
react-a11y-lang: true
react-a11y-meta: true
react-a11y-no-onchange: true
react-a11y-props: true
react-a11y-proptypes: true
react-a11y-required: true
react-a11y-role-has-required-aria-props: true
react-a11y-role-supports-aria-props: true
react-a11y-role: true
react-a11y-tabindex-no-positive: true
react-a11y-titles: true
require-license-header:
- true
- |-

View file

@ -20365,6 +20365,13 @@ tslint-config-prettier@^1.15.0:
resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.15.0.tgz#76b9714399004ab6831fdcf76d89b73691c812cf"
integrity sha512-06CgrHJxJmNYVgsmeMoa1KXzQRoOdvfkqnJth6XUkNeOz707qxN0WfxfhYwhL5kXHHbYJRby2bqAPKwThlZPhw==
tslint-microsoft-contrib@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/tslint-microsoft-contrib/-/tslint-microsoft-contrib-6.0.0.tgz#7bff73c9ad7a0b7eb5cdb04906de58f42a2bf7a2"
integrity sha512-R//efwn+34IUjTJeYgNDAJdzG0jyLWIehygPt/PHuZAieTolFVS56FgeFW7DOLap9ghXzMiFPTmDgm54qaL7QA==
dependencies:
tsutils "^2.27.2 <2.29.0"
tslint-plugin-prettier@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/tslint-plugin-prettier/-/tslint-plugin-prettier-2.0.0.tgz#ade328b26c71f37418d4d01187dca232a7447b49"
@ -20398,6 +20405,12 @@ tsutils@^2.27.2:
dependencies:
tslib "^1.8.1"
"tsutils@^2.27.2 <2.29.0":
version "2.28.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.28.0.tgz#6bd71e160828f9d019b6f4e844742228f85169a1"
dependencies:
tslib "^1.8.1"
tty-browserify@0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"