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
7d18460d8f
Chore: convert MetricSelect
test to RTL ( #56801 )
...
* convert MetricSelect test to RTL
* remove type param
2022-10-12 16:33:12 +01:00
6fcb2cd307
remove exported test globals from test/lib/common ( #50256 )
2022-06-06 15:38:37 +01:00
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
2bc30daa49
Alerting: allows clearing the datasource selection in rule list ( #41264 )
2021-11-09 18:20:36 +01:00
91c24e1f56
Chore: Upgrade Jest to latest ( #25591 )
...
* Chore: Upgrade Jest to latest
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: reduces strict null errors
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2020-06-15 13:06:37 +02:00
1e74037eae
React: refactor away from unsafe lifecycle methods ( #21291 )
...
* refactor aliasBy and PopoverCtrl components
* refactor Aggregations component
* refactor MetricSelect component
* refactor UserProvider
* popoverCtr: remove redundant logic
* simplified the MetricsSelect a bit.
* skipping testing of internal component logic.
* changed to componentWillMount.
* changed elapsed time to a functional component.
* rewrote the tests.
* fixed missing test title.
* fixed a tiny issue with elapsed time.
* rename of field.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2020-05-18 18:03:29 +02:00