chore: fix miscellaneous errors from linters (#1555)
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
/* eslint-disable */
|
||||
export const IDENTIFIER_FIELDS = ['title', 'path'];
|
||||
|
||||
export const INFERABLE_FIELDS = {
|
||||
@ -8,7 +7,7 @@ export const INFERABLE_FIELDS = {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['title', 'name', 'label', 'headline', 'header'],
|
||||
defaultPreview: value => <h1>{ value }</h1>,
|
||||
defaultPreview: value => <h1>{ value }</h1>, // eslint-disable-line react/display-name
|
||||
fallbackToFirstField: true,
|
||||
showError: true,
|
||||
},
|
||||
@ -16,7 +15,7 @@ export const INFERABLE_FIELDS = {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['short_title', 'shortTitle', 'short'],
|
||||
defaultPreview: value => <h2>{ value }</h2>,
|
||||
defaultPreview: value => <h2>{ value }</h2>, // eslint-disable-line react/display-name
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
},
|
||||
@ -24,7 +23,7 @@ export const INFERABLE_FIELDS = {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['author', 'name', 'by', 'byline', 'owner'],
|
||||
defaultPreview: value => <strong>{ value }</strong>,
|
||||
defaultPreview: value => <strong>{ value }</strong>, // eslint-disable-line react/display-name
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
},
|
||||
|
Reference in New Issue
Block a user