Steps to reproduce
create .prettierrc with
run npx featers generate service to create a service
Expected behavior
lines should end with semicolons
Actual behavior
.prettierrc is ignored
Probable fix
prettier.resolveConfig() seems to expect a file, not a directory. testing suggests that the file doesn't have to exist.
in packages/generators/src/commons.ts the line
const config = (await prettier.resolveConfig(ctx.cwd)) || options
could be changed to something like this:
const config = (await prettier.resolveConfig(join(ctx.cwd, '.prettierrc'))) || options
according to my minimal testing, cwd can also be omitted completely:
const config = (await prettier.resolveConfig()) || options
Steps to reproduce
create
.prettierrcwithrun
npx featers generate serviceto create a serviceExpected behavior
lines should end with semicolons
Actual behavior
.prettierrcis ignoredProbable fix
prettier.resolveConfig()seems to expect a file, not a directory. testing suggests that the file doesn't have to exist.in
packages/generators/src/commons.tsthe linecould be changed to something like this:
according to my minimal testing, cwd can also be omitted completely: