You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`@bam.tech/recommended`](./lib/configs/recommended.js)| The recommended config for all projects |
36
36
|[`@bam.tech/tests`](./lib/configs/tests.js)| The recommended config for test files. By default this applies to every file: put it in an `overrides` to filter on your test files. |
37
-
|[`@bam.tech/a11y`](./lib/configs/a11y.js)|[beta] Eslint config to check for accessibility. Still in beta to not break existing projects, but will be merged into the recommended config in the future. |
37
+
|[`@bam.tech/a11y`](./lib/configs/a11y.js)|[beta] Eslint config to check for accessibility. Still in beta to not break existing projects, but will be merged into the recommended config in the future. |
38
38
39
39
These configs need some peer dependencies. You can list them with:
40
40
@@ -54,17 +54,19 @@ This plugin exports some custom rules that you can optionally use in your projec
54
54
55
55
<!-- begin auto-generated rules list -->
56
56
57
+
💼 Configurations enabled in.\
58
+
♿ Set in the `a11y` configuration.\
57
59
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
58
60
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
|[accessibility-props-require-accessible](docs/rules/accessibility-props-require-accessible.md)| Requires accessible prop when accessibility props are defined | 🔧 ||
63
-
|[do-not-use-role-on-image](docs/rules/do-not-use-role-on-image.md)| Disallow role prop on Image component | 🔧 ||
|[require-named-effect](docs/rules/require-named-effect.md)| Enforces the use of named functions inside a useEffect |||
66
-
|[requires-accessibility-label](docs/rules/requires-accessibility-label.md)| Enforces label when component accessible || 💡 |
67
-
|[requires-accessibility-role-when-accessible](docs/rules/requires-accessibility-role-when-accessible.md)| Enforces accessibilityRole or role when component is accessible || 💡 |
|[accessibility-props-require-accessible](docs/rules/accessibility-props-require-accessible.md)| Requires accessible prop when accessibility props are defined |♿ |🔧 ||
65
+
|[do-not-use-role-on-image](docs/rules/do-not-use-role-on-image.md)| Disallow role prop on Image component |♿ |🔧 ||
|[require-named-effect](docs/rules/require-named-effect.md)| Enforces the use of named functions inside a useEffect ||||
68
+
|[requires-accessibility-label](docs/rules/requires-accessibility-label.md)| Enforces label when component accessible |♿ || 💡 |
69
+
|[requires-accessibility-role-when-accessible](docs/rules/requires-accessibility-role-when-accessible.md)| Enforces accessibilityRole or role when component is accessible |♿ || 💡 |
68
70
69
71
<!-- end auto-generated rules list -->
70
72
@@ -75,12 +77,7 @@ To use a rule, just declare it in your `.eslintrc`:
Copy file name to clipboardExpand all lines: packages/eslint-plugin/docs/rules/image-requires-accessible-prop.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Require accessible prop on image components (`@bam.tech/image-requires-accessible-prop`)
2
2
3
+
💼 This rule is enabled in the ♿ `a11y` config.
4
+
3
5
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
0 commit comments