Skip to content

Commit

Permalink
feat: a11y-delegate-element-has-role-presantation を warn で追加
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Dec 30, 2023
1 parent 1f56d1e commit e13874e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ module.exports = {

// original rules
'smarthr/a11y-anchor-has-href-attribute': 'error',
'smarthr/a11y-heading-in-sectioning-content': 'error',
'smarthr/a11y-clickable-element-has-text': 'error',
'smarthr/a11y-delegate-element-has-role-presentation': 'warn',
'smarthr/a11y-heading-in-sectioning-content': 'error',
'smarthr/a11y-image-has-alt-attribute': 'error',
'smarthr/a11y-input-has-name-attribute': 'error',
'smarthr/a11y-prohibit-input-placeholder': 'error',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-smarthr": "^0.3.15"
"eslint-plugin-smarthr": "^0.3.17"
}
}
1 change: 1 addition & 0 deletions test/__snapshots__/run.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`fixtures should match the snapshot 1`] = `
"Counter.tsx": {
"errors": [],
"warnings": [
"smarthr/a11y-delegate-element-has-role-presentation",
"react/no-children-prop",
"jsx-a11y/aria-role",
],
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2473,10 +2473,10 @@ eslint-plugin-react@^7.33.2:
semver "^6.3.1"
string.prototype.matchall "^4.0.8"

eslint-plugin-smarthr@^0.3.15:
version "0.3.15"
resolved "https://registry.yarnpkg.com/eslint-plugin-smarthr/-/eslint-plugin-smarthr-0.3.15.tgz#b02df7522df6fdaf8e7449bf87261a644886882c"
integrity sha512-54Zmai8W3yCcN6s5WEzX7UQC+VdmvQvNgH32jpv89SBzJuUVTc3GxSSsn6RGGWQOU4VrKVIJujPEHgbGuCpaCg==
eslint-plugin-smarthr@^0.3.17:
version "0.3.17"
resolved "https://registry.yarnpkg.com/eslint-plugin-smarthr/-/eslint-plugin-smarthr-0.3.17.tgz#2f1f25bd30f82f6ebc7851391c8f109f00b25d84"
integrity sha512-V2qwpq/y8wBwYdiMATIoWuQcPfJn5HLnWm7r/dInvGxVApBO3S0krG+z6SpHadqbiXd68J7QTcNM69Btsa2AMw==
dependencies:
inflected "^2.1.0"
json5 "^2.2.0"
Expand Down

0 comments on commit e13874e

Please sign in to comment.