Skip to content

Commit

Permalink
Modify rule S6747 (no-unknown-property ): add jsx-a11y/aria-props
Browse files Browse the repository at this point in the history
  • Loading branch information
kebetsi committed Oct 5, 2023
1 parent 82e0ae9 commit 922d10a
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
40,
41
],
"vuetify:packages/vuetify/src/components/VDialog/VDialog.tsx": [
120
],
"vuetify:packages/vuetify/src/components/VDivider/VDivider.tsx": [
47
],
Expand Down
180 changes: 180 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"builtin-modules": "3.3.0",
"bytes": "3.1.2",
"eslint": "8.47.0",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-sonarjs": "0.21.0",
Expand Down Expand Up @@ -119,6 +120,7 @@
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"eslint-plugin-sonarjs",
"eslint-plugin-jsx-a11y",
"express",
"functional-red-black-tree",
"htmlparser2",
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S6747/cb.fixture.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// ^^^^^^^^^^^
// fix@qf1 {{Replace with 'className'}}
// edit@qf1 [[sc=0;ec=24]] {{<div className="foo"></div>;}}
<div aria-foo="bar"></div>; // Noncompliant
<div aria-foo="bar"></div>; // Noncompliant {{aria-foo: This attribute is an invalid ARIA attribute.}}
<img src="foo.png" />
5 changes: 1 addition & 4 deletions packages/jsts/src/rules/S6747/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { rules } from 'eslint-plugin-react';
import { decorate } from './decorator';

export const rule = decorate(rules['no-unknown-property']);
export { rule } from './rule';
Loading

0 comments on commit 922d10a

Please sign in to comment.