mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary This adds an additional custom ESLint rule package which checks certain Eui elements for the existence of an `aria-label` prop. If it exists, it will leave it untouched. If it doesn't, it will warn the engineer it needs to be added, and offers a autofix suggestion for those engineers who have fix on save enabled in their IDE. <img width="739" alt="Screenshot 2025-03-25 at 13 59 28" src="https://github.com/user-attachments/assets/0813b317-c752-40d7-b569-e866a3ecf6b0" /> <img width="804" alt="Screenshot 2025-03-25 at 13 59 36" src="https://github.com/user-attachments/assets/3c45c49c-6db8-4740-b5de-89aa534c248b" /> This package is an offshoot of the `kbn-eslint-plugin-i18n` and `kbn-eslint-plugin-telemetry` packages. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
14 lines
604 B
JavaScript
14 lines
604 B
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
|
*/
|
|
|
|
module.exports = {
|
|
preset: '@kbn/test/jest_node',
|
|
rootDir: '../..',
|
|
roots: ['<rootDir>/packages/kbn-eslint-plugin-eui-a11y'],
|
|
};
|