You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package packages/cli is the only package written in JavaScript and because it's an exception in our TypeScript-based project, it's not covered by any linter. As a result, this part of our codebase may contain silly bugs that could have been caught by a linter.
I am proposing to start running eslint for packages/cli.
Alternatively, we can rewrite @loopback/cli into TypeScript, but that would be a larger task IMO.
Acceptance criteria
npm run lint executes eslint for packages/cli
npm run lint:fix executes eslint --fix
eslint is configured using eslint-config-loopback with custom configuration to disable eslint rules clashing with our Prettier formatting.
all linting errors are fixed - this should be a standalone commit in the pull request.
The text was updated successfully, but these errors were encountered:
The package packages/cli is the only package written in JavaScript and because it's an exception in our TypeScript-based project, it's not covered by any linter. As a result, this part of our codebase may contain silly bugs that could have been caught by a linter.
I am proposing to start running
eslint
forpackages/cli
.Alternatively, we can rewrite
@loopback/cli
into TypeScript, but that would be a larger task IMO.Acceptance criteria
npm run lint
executeseslint
forpackages/cli
npm run lint:fix
executeseslint --fix
The text was updated successfully, but these errors were encountered: