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);
|
||||
};
|
||||
|
||||
export function updateDatasourcePluginOption(
|
||||
props: DataSourcePluginOptionsEditorProps,
|
||||
export function updateDatasourcePluginOption<J, S extends {} = KeyValue>(
|
||||
props: DataSourcePluginOptionsEditorProps<J, S>,
|
||||
key: keyof DataSourceSettings,
|
||||
val: any
|
||||
) {
|
||||
@ -82,21 +82,27 @@ export const updateDatasourcePluginSecureJsonDataOption = <J, S extends {} = Key
|
||||
val: any
|
||||
) => {
|
||||
const config = props.options;
|
||||
if (!config.secureJsonData) {
|
||||
return;
|
||||
}
|
||||
|
||||
props.onOptionsChange({
|
||||
...config,
|
||||
secureJsonData: {
|
||||
...config.secureJsonData!,
|
||||
...config.secureJsonData,
|
||||
[key]: val,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const updateDatasourcePluginResetOption = <J, S extends {} = KeyValue>(
|
||||
props: DataSourcePluginOptionsEditorProps,
|
||||
props: DataSourcePluginOptionsEditorProps<J, S>,
|
||||
key: string
|
||||
) => {
|
||||
const config = props.options;
|
||||
if (!config.secureJsonData) {
|
||||
return;
|
||||
}
|
||||
|
||||
props.onOptionsChange({
|
||||
...config,
|
||||
|
@ -3,7 +3,7 @@ set -e
|
||||
|
||||
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+)')"
|
||||
|
||||
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user