Skip to content

lb4 repository,model,controller commands generate artifacts with 'lint' issues #4205

Description

@emonddr

I tried running : npm run test

after creating the artifacts from the Todo tutorial, and the linting after the tests fail.

I did a comparison of the generated files, and the files after npm run lint:fix and these are the differences I found:

Controller:

image

Repository:

image

Model:

image

Steps to reproduce

Current Behavior

Expected Behavior

Link to reproduction sandbox

Additional information

Related Issues

See Reporting Issues for more tips on writing good issues

Acceptance Criteria

  • Create the Todo application with the lb4 commands, and then ensure the npm run lint completes without error.
  • fix templates ( might need to update snapshots test as well)
  • add solutions to fix the lint error in docs

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions