Skip to content

Commit

Permalink
fix: update some things with jsx-a11y and whatnot
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jul 12, 2019
1 parent ad7fd93 commit d646036
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 26 deletions.
4 changes: 2 additions & 2 deletions jsx-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
'jsx-a11y/iframe-has-title': 'error',
'jsx-a11y/img-redundant-alt': 'error',
'jsx-a11y/interactive-supports-focus': 'warn',
'jsx-a11y/label-has-for': 'error',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/lang': 'error',
'jsx-a11y/media-has-caption': 'warn',
'jsx-a11y/mouse-events-have-key-events': 'error',
Expand All @@ -42,7 +42,7 @@ module.exports = {
'jsx-a11y/role-supports-aria-props': 'error',
'jsx-a11y/scope': 'error',
'jsx-a11y/tabindex-no-positive': 'warn',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/label-has-associated-control': 'error',
'jsx-a11y/control-has-associated-label': 'off',
},
}
3 changes: 0 additions & 3 deletions other/test/babel-module.js

This file was deleted.

3 changes: 0 additions & 3 deletions other/test/babel-react-require.js

This file was deleted.

3 changes: 0 additions & 3 deletions other/test/jest.js

This file was deleted.

1 change: 1 addition & 0 deletions other/test/jest/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": "./index.js"}
3 changes: 3 additions & 0 deletions other/test/jest/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['../../../index.js', '../../../jest.js'],
}
3 changes: 0 additions & 3 deletions other/test/jsx-a11y.js

This file was deleted.

1 change: 1 addition & 0 deletions other/test/jsx-a11y/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": "./index.js"}
3 changes: 3 additions & 0 deletions other/test/jsx-a11y/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['../../../index.js', '../../../jsx-a11y.js'],
}
3 changes: 0 additions & 3 deletions other/test/react.js

This file was deleted.

1 change: 1 addition & 0 deletions other/test/react/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": "./index.js"}
3 changes: 3 additions & 0 deletions other/test/react/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['../../../index.js', '../../../react.js'],
}
3 changes: 0 additions & 3 deletions other/test/webpack.js

This file was deleted.

1 change: 1 addition & 0 deletions other/test/webpack/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": "./index.js"}
3 changes: 3 additions & 0 deletions other/test/webpack/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['../../../index.js', '../../../webpack.js'],
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"lint": "eslint .",
"test": "npm-run-all --parallel lint find-new-rules",
"find-new-rules": "npm-run-all --parallel find-new-rules:*",
"find-new-rules:jsx-a11y": "eslint-find-rules --unused ./other/test/jsx-a11y.js",
"find-new-rules:jest": "eslint-find-rules --unused ./other/test/jest.js",
"find-new-rules:main": "eslint-find-rules --unused ./index.js",
"find-new-rules:react": "eslint-find-rules --unused ./other/test/react.js",
"find-new-rules:webpack": "eslint-find-rules --unused ./other/test/webpack.js",
"find-new-rules:jsx-a11y": "eslint-find-rules --unused ./other/test/jsx-a11y/index.js",
"find-new-rules:jest": "eslint-find-rules --unused ./other/test/jest/index.js",
"find-new-rules:react": "eslint-find-rules --unused ./other/test/react/index.js",
"find-new-rules:webpack": "eslint-find-rules --unused ./other/test/webpack/index.js",
"validate": "npm t"
},
"husky": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"homepage": "https://github.com/kentcdodds/eslint-config-kentcdodds#readme",
"dependencies": {
"babel-eslint": "^10.0.1",
"eslint-config-prettier": "^4.3.0",
"eslint-config-prettier": "^6.0.0",
"eslint-import-resolver-webpack": "^0.11.1",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.17.1",
Expand All @@ -57,7 +57,7 @@
"devDependencies": {
"eslint": "^5.16.0",
"eslint-find-rules": "^3.3.1",
"husky": "^2.4.0",
"husky": "^3.0.0",
"npm-run-all": "^4.1.3"
}
}

0 comments on commit d646036

Please sign in to comment.