Skip to content

Commit a23c40e

Browse files
committed
style: avoid importing lodash
1 parent ceb9ea4 commit a23c40e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/bin/commands/generate-types.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
/* eslint-disable no-new-func */
44

5-
import _ from 'lodash';
5+
import {
6+
camelCase,
7+
upperFirst
8+
} from 'lodash';
69
import {
710
createConnection
811
} from 'mightyql';
@@ -70,11 +73,11 @@ type FormatterType = (name: string) => string;
7073

7174
export const handler = async (argv: ConfigurationType): Promise<void> => {
7275
const defaultFormatTypeName = (tableName: string): string => {
73-
return _.upperFirst(_.camelCase(tableName)) + 'RecordType';
76+
return upperFirst(camelCase(tableName)) + 'RecordType';
7477
};
7578

7679
const defaultFormatPropertyName = (columnName: string): string => {
77-
return _.camelCase(columnName);
80+
return camelCase(columnName);
7881
};
7982

8083
// eslint-disable-next-line no-extra-parens

0 commit comments

Comments
 (0)