chore: fix miscellaneous errors from linters (#1555)

This commit is contained in:
Caleb
2018-07-31 15:03:46 -06:00
committed by Shawn Erquhart
parent d5f59de2d2
commit 5a27fb8b9d
35 changed files with 75 additions and 85 deletions

View File

@ -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,
},