a9e70d4a1d
Storybook: Rearrange and tidy stories ( #107270 )
...
* Tidy up storybook a little bit
* change sort order, delete some stories
* More tidy up of actions
* More tidy up of actions
* tweak story sorting, again
* Make all internal stories public
* fix sort
* Add ESLint rule to enforce storybook titles
* update verify storybook test
* simplify glob
2025-07-08 12:37:09 +00:00
443ea5924c
Eslint: Allow 'unset' in no-border-radius-literal lint rule ( #106619 )
...
* allow border radius of 0
* Prefer unset or initial over 0
* readme
* add an autofix for 0 -> unset
* replace 0 with unset
* fix fixes tests
* fix snapshot
* Fix lint in SecretFormField
* fix unused cx
2025-07-04 15:43:48 +01:00
abb885c585
I18n: Move eslint rule to package ( #105860 )
2025-05-29 16:11:59 +02:00
7bfa78c6e6
I18n: Update eslint rule to catch some untranslated object properties ( #105072 )
2025-05-28 21:14:43 +01:00
ac0fd38183
Chore: Add new no-translation-top-level
eslint rule ( #101550 )
2025-03-04 15:42:37 +02:00
8840471574
Internationalisation: Update docs with nested variable examples ( #89484 )
...
* update i18n docs to handle interpolating variables inside inner components
* update with wrapping component example
2024-06-21 09:48:40 +01:00
a47e71fd34
Chore: create the no-untranslated-literals
rule ( #88271 )
2024-05-29 13:03:59 +02:00
c151a97110
Chore: Enable no-unreduced-motion
and fix errors ( #86572 )
...
* enable `no-unreduced-motion` in betterer
* move all animation calls inside handleReducedMotion
* fix violations + enable rule
* update rule README
* remove unnecessary transition from <Collapse>
* remove handleReducedMotion utility and add handleMotion to theme
* update to use new theme value
* handle Dropdown and IconButton
* handle AppChromeMenu and update lint message
* keep rotation at a reduced speed
* handle DashboardLoading
2024-04-29 13:12:36 +01:00
5e74b6962b
Chore: Add lint rule for no-unreduced-motion
( #85862 )
...
* add lint rule for no-unreduced-motion
* update to satisfy types
2024-04-15 09:18:56 +01:00
f209a5a8b8
fix typos ( #83414 )
2024-02-26 10:52:44 -07:00
0bd1a18665
ESLint: Fix typo in README ( #75784 )
...
Fix typo in grafana-eslint-rules/README.md
appropiate -> appropriate
2023-10-19 14:54:48 +02:00
7469f58709
GLDS: Check if tokens are used as borderRadius values ( #71187 )
2023-08-01 12:44:25 +02:00
ae4810f854
Chore: Emit theme token usage metrics ( #72500 )
...
* create rule to find instances of theme variables
* emit theme token usage metrics
* move awking into script
* make sure theme usage is covering ts and tsx files, remove commented lines
2023-07-28 17:08:02 +03:00
959c89793f
Chore: eslint rule for preventing e2e selectors in aria-label ( #59731 )
...
* Create eslint plugin/rule for catching e2e selectors in aria-label
* Add no-aria-label-e2e-selectors to betterer
* chore: skip levitate for the `grafana-eslint-rules` package
* Fix rule
* Add readme
* Add Apache 2 license
* Typecheck using @typescript-eslint/utils
* actually export the rule
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-01-18 15:02:35 +00:00