File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33/* eslint-disable no-new-func */
44
5- import _ from 'lodash' ;
5+ import {
6+ camelCase ,
7+ upperFirst
8+ } from 'lodash' ;
69import {
710 createConnection
811} from 'mightyql' ;
@@ -70,11 +73,11 @@ type FormatterType = (name: string) => string;
7073
7174export 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
You can’t perform that action at this time.
0 commit comments