diff --git a/.eslintrc b/.eslintrc index 9d897ea4a08..6df70e8521f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,13 +12,11 @@ "react-hooks/rules-of-hooks": "off", "react-hooks/exhaustive-deps": "off", "react/prop-types": "off", - "react/no-children-prop": "off", "react/no-unescaped-entities": "off", - "react/jsx-no-target-blank": "off", "react/display-name": "off", - "react/jsx-key": "off", "react/no-deprecated": "off", - "react/no-unknown-property": "off", + "react/no-unknown-property": "off", + "react/no-children-prop": "off", "react/no-find-dom-node": "off", "react/no-render-return-value": "off" } diff --git a/package.json b/package.json index e52352e6277..04b066d525e 100644 --- a/package.json +++ b/package.json @@ -137,6 +137,7 @@ "eslint-config-prettier": "6.11.0", "eslint-plugin-jsdoc": "28.6.1", "eslint-plugin-prettier": "3.1.4", + "eslint-plugin-react": "7.21.5", "eslint-plugin-react-hooks": "4.1.2", "expect.js": "0.3.1", "expose-loader": "0.7.5", diff --git a/packages/grafana-ui/src/components/InfoBox/InfoBox.tsx b/packages/grafana-ui/src/components/InfoBox/InfoBox.tsx index f1db3af3b7f..e635a459127 100644 --- a/packages/grafana-ui/src/components/InfoBox/InfoBox.tsx +++ b/packages/grafana-ui/src/components/InfoBox/InfoBox.tsx @@ -46,7 +46,7 @@ export const InfoBox = React.memo(
If the error persists, seek help on the{' '} - + community site . diff --git a/public/app/core/components/PageHeader/PageHeader.tsx b/public/app/core/components/PageHeader/PageHeader.tsx index c16019a46ab..0f3c2ea85ae 100644 --- a/public/app/core/components/PageHeader/PageHeader.tsx +++ b/public/app/core/components/PageHeader/PageHeader.tsx @@ -51,7 +51,7 @@ const Navigation = ({ children }: { children: NavModelItem[] }) => { return (
We have encountered{' '}
-
+
data source backend plugins
{' '}
that are unsigned. Grafana Labs cannot guarantee the integrity of unsigned plugins and recommends using signed
diff --git a/public/app/plugins/datasource/cloudwatch/components/CloudWatchLink.tsx b/public/app/plugins/datasource/cloudwatch/components/CloudWatchLink.tsx
index 768e7c806cb..c360e604409 100644
--- a/public/app/plugins/datasource/cloudwatch/components/CloudWatchLink.tsx
+++ b/public/app/plugins/datasource/cloudwatch/components/CloudWatchLink.tsx
@@ -58,7 +58,7 @@ export default class CloudWatchLink extends Component
There are different types of Graphite compatible backends. Here you can specify the type you are using. If you
are using{' '}
-
+
Metrictank
{' '}
then select that here. This will enable Metrictank specific features like query processing meta data. Metrictank
diff --git a/public/app/plugins/datasource/prometheus/components/PromLink.tsx b/public/app/plugins/datasource/prometheus/components/PromLink.tsx
index 917a128422e..18cc7e9c81c 100644
--- a/public/app/plugins/datasource/prometheus/components/PromLink.tsx
+++ b/public/app/plugins/datasource/prometheus/components/PromLink.tsx
@@ -64,7 +64,7 @@ export default class PromLink extends ComponentCloudWatch Logs Cheat Sheet
- {CLIQ_EXAMPLES.map(cat => (
- {item.title}
- {this.renderExpression(item.expr, `item-${i}`)}
+ {this.renderExpression(item.expr, `item-${j}`)}