Skip to content

Commit

Permalink
Adding a11y rules from tslint-microsoft-contrib to tslint (elastic#26888
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bhavyarm committed Dec 18, 2018
1 parent 2144b24 commit 95cfc51
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
19 changes: 19 additions & 0 deletions tslint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- |-
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 95cfc51

Please sign in to comment.