diff --git a/.config/.cprc.json b/.config/.cprc.json
new file mode 100644
index 0000000..9786dbe
--- /dev/null
+++ b/.config/.cprc.json
@@ -0,0 +1,3 @@
+{
+ "version": "5.10.0"
+}
diff --git a/.config/.eslintrc b/.config/.eslintrc
index 56950f2..b133be4 100644
--- a/.config/.eslintrc
+++ b/.config/.eslintrc
@@ -2,12 +2,30 @@
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
* In order to extend the configuration follow the steps in
- * https://grafana.github.io/plugin-tools/docs/advanced-configuration#extending-the-eslint-config
+ * https://grafana.com/developers/plugin-tools/get-started/set-up-development-environment#extend-the-eslint-config
*/
{
"extends": ["@grafana/eslint-config"],
"root": true,
"rules": {
"react/prop-types": "off"
- }
+ },
+ "overrides": [
+ {
+ "plugins": ["deprecation"],
+ "files": ["src/**/*.{ts,tsx}"],
+ "rules": {
+ "deprecation/deprecation": "warn"
+ },
+ "parserOptions": {
+ "project": "./tsconfig.json"
+ }
+ },
+ {
+ "files": ["./tests/**/*"],
+ "rules": {
+ "react-hooks/rules-of-hooks": "off"
+ }
+ }
+ ]
}
diff --git a/.config/.prettierrc.js b/.config/.prettierrc.js
index 3777f7b..bf506f5 100644
--- a/.config/.prettierrc.js
+++ b/.config/.prettierrc.js
@@ -1,20 +1,3 @@
-/*
- * Copyright (C) 2023 Intergral GmbH
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
/*
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
diff --git a/.config/Dockerfile b/.config/Dockerfile
index 35d89bd..2793416 100644
--- a/.config/Dockerfile
+++ b/.config/Dockerfile
@@ -3,6 +3,12 @@ ARG grafana_image=grafana-enterprise
FROM grafana/${grafana_image}:${grafana_version}
+ARG development=false
+ARG TARGETARCH
+
+
+ENV DEV "${development}"
+
# Make it as simple as possible to access the grafana instance for development purposes
# Do NOT enable these settings in a public facing / production grafana instance
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
@@ -11,6 +17,37 @@ ENV GF_AUTH_BASIC_ENABLED "false"
# Set development mode so plugins can be loaded without the need to sign
ENV GF_DEFAULT_APP_MODE "development"
-# Inject livereload script into grafana index.html
+
+LABEL maintainer="Grafana Labs "
+
+ENV GF_PATHS_HOME="/usr/share/grafana"
+WORKDIR $GF_PATHS_HOME
+
USER root
-RUN sed -i 's/<\/body><\/html>/