Skip to content

Commit

Permalink
Add a11y linting script
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRosenberg committed Oct 19, 2019
1 parent f588c94 commit bb348c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions a11y.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["plugin:jsx-a11y/strict"],
"plugins": ["jsx-a11y"]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A web-based note-taking app with GitHub sync and Markdown support",
"private": false,
"scripts": {
"a11y:fix": "eslint src --ext tsx --config './a11y.json' --fix",
"build": "react-scripts build",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
Expand Down Expand Up @@ -154,6 +155,7 @@
"cypress": "^3.4.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"jest": "^24.9.0",
Expand Down

0 comments on commit bb348c4

Please sign in to comment.