Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Jun 17, 2018
1 parent f917e69 commit c3feb87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nightingale-debug/src/index.test.ts
@@ -1,5 +1,5 @@
import Level from 'nightingale-levels';
import createFindDebugLevel from './';
import createFindDebugLevel from '.';

describe('created with undefined', () => {
const findDebugLevel = createFindDebugLevel();
Expand Down
8 changes: 6 additions & 2 deletions packages/nightingale-formatter/src/formatRecordToString.ts
@@ -1,9 +1,13 @@
import { Record } from 'nightingale-types';
/* eslint-disable no-unused-vars */
import { Record, Metadata } from 'nightingale-types';
import levelToSymbol from './levelToSymbol';
import levelToStyles from './levelToStyles';
import formatObject, { StyleFn, ObjectStyles } from './formatObject';

export default function formatRecordToString<T>(record: Record<T>, style: StyleFn) {
export default function formatRecordToString<T extends Metadata>(
record: Record<T>,
style: StyleFn,
) {
const parts: Array<string> = [];

if (record.displayName) {
Expand Down
2 changes: 1 addition & 1 deletion packages/nightingale-formatter/src/index.test.ts
Expand Up @@ -5,7 +5,7 @@ import {
styleToHexColor,
formatObject,
formatRecordToString,
} from './';
} from '.';

describe('test exports', () => {
test('levelToStyles', () => expect(typeof levelToStyles).toBe('object'));
Expand Down

0 comments on commit c3feb87

Please sign in to comment.