mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: remove strict errors for azure-monitor (#40675)
This commit is contained in:
parent
0d036a6df5
commit
302fef394a
@ -47,8 +47,8 @@ export const onUpdateDatasourceResetOption = (props: DataSourcePluginOptionsEdit
|
|||||||
updateDatasourcePluginResetOption(props, key);
|
updateDatasourcePluginResetOption(props, key);
|
||||||
};
|
};
|
||||||
|
|
||||||
export function updateDatasourcePluginOption(
|
export function updateDatasourcePluginOption<J, S extends {} = KeyValue>(
|
||||||
props: DataSourcePluginOptionsEditorProps,
|
props: DataSourcePluginOptionsEditorProps<J, S>,
|
||||||
key: keyof DataSourceSettings,
|
key: keyof DataSourceSettings,
|
||||||
val: any
|
val: any
|
||||||
) {
|
) {
|
||||||
@ -82,21 +82,27 @@ export const updateDatasourcePluginSecureJsonDataOption = <J, S extends {} = Key
|
|||||||
val: any
|
val: any
|
||||||
) => {
|
) => {
|
||||||
const config = props.options;
|
const config = props.options;
|
||||||
|
if (!config.secureJsonData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
props.onOptionsChange({
|
props.onOptionsChange({
|
||||||
...config,
|
...config,
|
||||||
secureJsonData: {
|
secureJsonData: {
|
||||||
...config.secureJsonData!,
|
...config.secureJsonData,
|
||||||
[key]: val,
|
[key]: val,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const updateDatasourcePluginResetOption = <J, S extends {} = KeyValue>(
|
export const updateDatasourcePluginResetOption = <J, S extends {} = KeyValue>(
|
||||||
props: DataSourcePluginOptionsEditorProps,
|
props: DataSourcePluginOptionsEditorProps<J, S>,
|
||||||
key: string
|
key: string
|
||||||
) => {
|
) => {
|
||||||
const config = props.options;
|
const config = props.options;
|
||||||
|
if (!config.secureJsonData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
props.onOptionsChange({
|
props.onOptionsChange({
|
||||||
...config,
|
...config,
|
||||||
|
@ -3,7 +3,7 @@ set -e
|
|||||||
|
|
||||||
echo -e "Collecting code stats (typescript errors & more)"
|
echo -e "Collecting code stats (typescript errors & more)"
|
||||||
|
|
||||||
ERROR_COUNT_LIMIT=12
|
ERROR_COUNT_LIMIT=6
|
||||||
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
||||||
|
|
||||||
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user