Chore: Enable remaining eslint-plugin-react rules (#29519)

* Chore: Enable eslint react/no-render-return-value rule

Eanble the rule and remove the unused render return

part of: #29201

* Chore: Enable eslint react/no-children-prop rule

Not linting issues after turning on this. No other file changes requried

part of: #29201

* Chore: Enable eslint react/no-unknown-property rule

Correct enable-background to enableBackground

part of: #29201

* Chore: Enable eslint react/no-unescaped-entities rule

Replaced " with " replaced ' with '

part of: #29201
This commit is contained in:
Chi-Hsuan Huang
2020-12-02 17:03:37 +08:00
committed by GitHub
parent eb16eb5d72
commit 73518bf1e7
15 changed files with 21 additions and 24 deletions

View File

@@ -256,7 +256,8 @@ export class ConfigEditor extends PureComponent<Props> {
<p>
Setting the database for this datasource does not deny access to other databases. The InfluxDB query
syntax allows switching the database in the query. For example:
<code>SHOW MEASUREMENTS ON _internal</code> or <code>SELECT * FROM "_internal".."database" LIMIT 10</code>
<code>SHOW MEASUREMENTS ON _internal</code> or
<code>SELECT * FROM &quot;_internal&quot;..&quot;database&quot; LIMIT 10</code>
<br />
<br />
To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.

View File

@@ -245,7 +245,7 @@ exports[`Render should disable basic auth password input 1`] = `
<code>
SHOW MEASUREMENTS ON _internal
</code>
or
or
<code>
SELECT * FROM "_internal".."database" LIMIT 10
</code>
@@ -533,7 +533,7 @@ exports[`Render should hide basic auth fields when switch off 1`] = `
<code>
SHOW MEASUREMENTS ON _internal
</code>
or
or
<code>
SELECT * FROM "_internal".."database" LIMIT 10
</code>
@@ -821,7 +821,7 @@ exports[`Render should hide white listed cookies input when browser access chose
<code>
SHOW MEASUREMENTS ON _internal
</code>
or
or
<code>
SELECT * FROM "_internal".."database" LIMIT 10
</code>
@@ -1109,7 +1109,7 @@ exports[`Render should render component 1`] = `
<code>
SHOW MEASUREMENTS ON _internal
</code>
or
or
<code>
SELECT * FROM "_internal".."database" LIMIT 10
</code>

View File

@@ -137,7 +137,7 @@ export class PromQueryEditor extends PureComponent<Props, State> {
<>
An additional lower limit for the step parameter of the Prometheus query and for the{' '}
<code>$__interval</code> and <code>$__rate_interval</code> variables. The limit is absolute and not
modified by the "Resolution" setting.
modified by the &quot;Resolution&quot; setting.
</>
}
>

View File

@@ -168,7 +168,7 @@ export const QueryEditor = ({ query, datasource, onChange, onRunQuery }: Props)
<br />
{`{ key = "value", key2 = "value" }`}
<br />
key="value", key2="value"
key=&quot;value&quot;, key2=&quot;value&quot;
<br />
key=value, key2=value
<br />