Ashley Harrison
47f8717149
React: Use new JSX transform ( #88802 )
...
* update eslint, tsconfig + esbuild to handle new jsx transform
* remove thing that breaks the new jsx transform
* remove react imports
* adjust grafana-icons build
* is this the correct syntax?
* try this
* well this was much easier than expected...
* change grafana-plugin-configs webpack config
* fixes
* fix lockfile
* fix 2 more violations
* use path.resolve instead of require.resolve
* remove react import
* fix react imports
* more fixes
* remove React import
* remove import React from docs
* remove another react import
2024-06-25 12:43:47 +01:00
Ashley Harrison
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
Erik Sundell
a3ef463499
Grafana packages: Remove E2E workspace ( #86416 )
...
* remove e2e package code and any code referencing it
* update code owners
* remove more references to e2e package
* remove unrelated file
2024-04-25 07:12:43 +02:00
Jack Westbrook
1dfd34ee79
Chore: Add codemod and betterer config to make barrel imports explicit ( #80913 )
...
* chore: add codemod for highlighting barrel imports
* style(frontend): add no-barrel-files plugin to betterer
* chore(betterer): update betterer file
* ci(frontend-metrics): track occurrences of barrel files being imported
* chore: clean up explicit barrel imports codemod script
* chore(codeowners): add explicit barrel imports script
* Add no-barrel-files plugin to betterer configuration
Co-Authored-By: LeventeBalogh <balogh.levente.hu@gmail.com>
---------
Co-authored-by: LeventeBalogh <balogh.levente.hu@gmail.com>
2024-04-15 16:36:19 +02:00
Fabrizio
d1f791cf1f
Jaeger: Decouple Jaeger plugin ( #81377 )
2024-03-19 15:39:31 +02:00
Fabrizio
d1c5e491ac
Zipkin: Decouple Zipkin plugin ( #81354 )
2024-02-20 18:24:40 +02:00
Ida Štambuk
5431c51490
Cloudwatch: Add linting to restrict imports from core ( #82538 )
...
---------
Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
2024-02-20 14:52:11 +01:00
Ivana Huckova
48b4ca8228
Elasticsearch: Decouple frontend dependencies from core ( #82179 )
...
* Elasticsearch: Decouple frontend dependencies from core
* Remove not needed code change
2024-02-09 14:11:08 +02:00
Ivana Huckova
3251b2e9b7
Decouple: Make eslint rules stricter and don't allow import of anything from public ( #81711 )
...
Decouple: Make eslint rules stronger and don't allow import of anything from public
2024-02-01 16:37:29 +01:00
Ivana Huckova
9de5e9754c
Loki: Add to .eslintrc
list to restrict imports from core ( #81710 )
...
Loki: Add to .eslintrc list to restrict imports from core
2024-02-01 14:46:32 +02:00
Gábor Farkas
8a4f060f75
sql: add linting rule for decoupling postgres & mysql ( #81378 )
2024-01-31 10:00:59 +01:00
Alyssa Bull
2d432d6ff3
Plugins: Externalize Cloud Monitoring data source ( #80181 )
2024-01-29 09:24:23 -07:00
Joey
6796e66fb8
Pyroscope: Add standalone build ( #80222 )
...
* Pyroscope standalone build
* Fix for tests
* Add missing packages
* Remove import
* Update trace to profiles
* Update test
2024-01-16 12:46:15 +00:00
Fabrizio
522519f671
Tempo: Decouple Tempo from Grafana core ( #79888 )
2024-01-16 11:36:40 +01:00
Andreas Christou
dd77ff6bcd
Plugins: Externalise Azure Monitor data source ( #79545 )
...
* Set up frontend linting for Azure
- Fix final frontend import
- Fix other lint issues
* Add Azure Monitor to backend linting
* Remove featuremgmt dependency
* Add intervalv2 to list of disallowed imports
* Remove config dependency
- Replace with function from azure-sdk
* Remove util dependency
* Duplicate interval functionality from core
* Add required backend wrappers
* Update frontend
* Add testing helper
* Add missing package
* Bump minimum grafana dependency
* Fix dependency
* Regen cue
* Fix lint
* Update expected response file
* Update import and dependency
2024-01-03 19:20:22 +00:00
Fabrizio
7746250367
Parca: Add standalone building configuration ( #79896 )
...
* Parca: Decouple frontend
* Parca: decouple backend
* Parca: add standalone build process
* Regenerate cue files
* Fix import
* Trigger CI
* Fix test
* Trigger CI
* Trigger CI
2024-01-02 16:36:57 +01:00
Andres Martinez Gotor
6b54aee4ba
Chore: Improve decoupled-plugin linter ( #75285 )
2023-09-25 12:15:15 +02:00
Andres Martinez Gotor
c70623fb85
Chore: Rename testdata plugin with a fully qualified name ( #75104 )
2023-09-22 15:00:40 +03:00
Ashley Harrison
0f2f25c5d9
Chore: Move to Cypress 12 and decouple cypress from @grafana/e2e
( #74084 )
...
* update drone to use cypress 12 image
* upgrade cypress to 12 in core
* cypress config actually valid
* update @grafana/e2e imports and add lint rule
* ignore grafana-e2e from betterer now it's deprecated
* fix remaining type errors
* fix failing tests
* remove unnecessary tsconfig
* remove unnecessary comment
* update enterprise suite commands to work
* add cypress config to CODEOWNERS
* export setTimeRange in utils
* remove @grafana/e2e from core deps
* try running the command through yarn
* move CMD to scripts
* Update cloud-data-sources e2e image
* Update paths
---------
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-09-08 16:51:59 +01:00
Laura Fernández
7469f58709
GLDS: Check if tokens are used as borderRadius values ( #71187 )
2023-08-01 12:44:25 +02:00
Andres Martinez Gotor
47f1c5d084
Chore: Avoid Grafana core imports for the test data source ( #71956 )
2023-07-20 09:34:19 +02:00
Torkel Ödegaard
f6f3d97288
Eslint: Remove scenes rule for member accessability ( #71087 )
2023-07-06 09:22:02 +02:00
Ashley Harrison
7a2a5dde8b
Chore: Enable remaining jsx-a11y rules ( #70990 )
...
enabling remaining a11y rules + ignore existing violations
2023-06-30 16:58:16 +01:00
Josh Hunt
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
Laura Fernández
45d3125919
OptionsUI: SliderValueEditor does not get auto focused on slider change ( #59209 )
2022-11-24 18:21:33 +01:00
Torkel Ödegaard
1fb37b54b3
Scenes: Enforce explicit accessibility modifiers (ESLint) ( #58331 )
...
* Public test
* Update
* Update
* revert
* Added some public accessability modifiers
* Force public acessability only for scenes/* folder
* Fixes
2022-11-07 15:32:02 +01:00
Ashley Harrison
514d3111f4
Accessibility: Enable rule jsx-a11y/no-noninteractive-element-interactions
( #58077 )
...
* fixes for no-noninteractive-element-interactions
* remaining fixes
* add type="button"
* fix unit tests
2022-11-03 10:55:58 +00:00
Ashley Harrison
f76ba90078
Accessibility: Enable jsx-a11y/mouse-events-have-key-events
( #58050 )
...
* implement VizLegend keyboard accessibility
* add onBlur/onFocus
2022-11-03 10:22:50 +00:00
renovate[bot]
909d0f4ced
Update Monthly patch updates ( #58002 )
...
* Update Monthly patch updates
* update typescript sdk, add ignore for emotion css prop
* fix unit tests
* type fixes
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-11-02 12:05:32 +00:00
Ashley Harrison
e5c68f40c2
Accessibility: enable rule jsx-a11y/label-has-associated-control
( #57964 )
...
* use labels correctly
* fix opentsdb labels
* fix unit tests
* use aria-label instead of data-testid
2022-11-01 14:37:58 +00:00
Ashley Harrison
7e631e7239
A11y: Enable jsx-a11y/interactive-supports-focus
( #57391 )
...
* first batch of fixes for interactive-supports-focus
* remove role and aria attributes since this won't be focusable to a screenreader anyway
2022-10-21 13:52:46 +01:00
Laura Fernández
e402a8f27d
A11y: enable rule jsx-a11y/anchor-is-valid ( #56690 )
2022-10-21 09:13:32 +02:00
Ashley Harrison
a904372269
Accessibility: enable rule jsx-a11y/no-noninteractive-element-to-interactive-role
( #56870 )
...
* enable rule `jsx-a11y/no-noninteractive-element-to-interactive-role` and switch to extending recommended preset
* fix unit tests
* better unit test
2022-10-14 11:02:01 +01:00
Josh Hunt
891f9c00a1
I18n: Add lint rule to enforce correct i18n imports ( #56487 )
...
* I18n: Add lint rule to enforce correct i18n imports
* ignore in gui wrapper
2022-10-07 11:46:28 +01:00
Ashley Harrison
d293055ef6
enable rule jsx-a11y/iframe-has-title
( #56292 )
2022-10-04 16:04:28 +01:00
Ashley Harrison
e942a3d99d
enable jsx-a11y/no-autofocus ( #56288 )
2022-10-04 12:54:14 +01:00
Laura Fernández
fca252e7dc
A11y: enable rule jsx-a11y/alt-text ( #55832 )
...
* Enable jsx-a11y/alt-text rule
* Fix errors
* Fix tests
* Enable jsx-a11y/alt-text rule after solving merge conflict
* Delete unused import
* Modify files according to the reviewer's comments
* Revert test changes and update snapshot
* tweaks to image alt names
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-10-03 09:27:04 +01:00
Ashley Harrison
5b1fdd535a
Accessibility: turn on jsx-a11y/no-noninteractive-tabindex
+ fix/ignore errors ( #56084 )
...
* turn on jsx-a11y/no-noninteractive-tabindex + fix/ignore errors
* update comments
2022-09-30 13:20:39 +01:00
Ashley Harrison
97f1524b66
Chore: move the a11y rules to the overrides section so they don't apply to t… ( #55848 )
...
* move the a11y rules to the overrides section so they don't apply to tests
* turn alt-text back off
2022-09-27 16:59:35 +01:00
Ashley Harrison
11eb02a183
enable rule role-has-required-aria-props ( #55841 )
2022-09-27 11:17:26 -04:00
Ashley Harrison
527c00dae5
enable rule jsx-a11y/role-supports-aria-props ( #55839 )
2022-09-27 15:42:46 +01:00
Ashley Harrison
422b22a513
enable img-redundant-alt rule ( #55833 )
2022-09-27 10:26:32 -04:00
Ashley Harrison
afdb094983
turn on tabindex-no-positive rule ( #55830 )
2022-09-27 15:18:24 +01:00
Laura Fernández
4544494058
A11y: enable rule jsx-a11y/aria-role ( #55760 )
2022-09-27 10:55:16 +02:00
Ashley Harrison
80c49688a1
turn on all the rules that are working anyway ( #55679 )
2022-09-23 09:18:23 -04:00
Ashley Harrison
717e9b0a34
add eslint-plugin-jsx-a11y ( #55677 )
2022-09-23 14:02:16 +01:00
kay delaney
64bbb7a7ce
Chore: Update and enforce usage of typed react-redux hooks ( #55349 )
...
* Chore: Update and enforce usage of typed react-redux hooks
2022-09-19 10:49:35 +01:00
Josh Hunt
4b4d546e32
Typed variables pt4: Remove generics from getVariable ( #53017 )
...
* wip
* make diff easier to read
* Update template_srv getVariables to return new TypedVariableModel
* update VariableType to use the type from TypedVariableModel
* tidy things up
* Chore: Use type-accurate mock variables in tests
* Chore: Type VariableState to use TypedVariableModel
* fix typo
* remove type assertion from template_srv.getVariables
* use typescript/no-redeclare for compatibility with ts overloads
* remove generics from getVariable() and overload it to only return undefined based on arguments
* update usages of getVariable()
* Fix Interval variable options picker not working
2022-08-05 13:44:52 +01:00
Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
Connor Lindsey
cd05ee0054
Chore: Prevent focused tests by adding jest eslint rule ( #45088 )
...
* Prevent focused tests by adding jest eslint rule
* Remove redundant no-only-tests eslint plugin
* Update lock file
2022-02-11 15:59:30 +01:00