Prettier: Upgrade to 2 (#30387)

* Updated package json but not updated source files

* Update eslint plugin

* updated files
This commit is contained in:
Torkel Ödegaard
2021-01-20 07:59:48 +01:00
committed by GitHub
parent f27450ed94
commit 1d689888b0
1069 changed files with 4370 additions and 5260 deletions

View File

@@ -60,7 +60,7 @@ export const DataLink = (props: Props) => {
variant={'destructive'}
title="Remove field"
icon="times"
onClick={event => {
onClick={(event) => {
event.preventDefault();
onDelete();
}}
@@ -74,7 +74,7 @@ export const DataLink = (props: Props) => {
<DataLinkInput
placeholder={showInternalLink ? '${__value.raw}' : 'http://example.com/${__value.raw}'}
value={value.url || ''}
onChange={newValue =>
onChange={(newValue) =>
onChange({
...value,
url: newValue,
@@ -109,7 +109,7 @@ export const DataLink = (props: Props) => {
<DataSourcePicker
tracing={true}
// Uid and value should be always set in the db and so in the items.
onChange={ds => {
onChange={(ds) => {
onChange({
...value,
datasourceUid: ds.uid,