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
After fixing #2481 we should be able to reactivate the lint command in the integration test in packages/@o3r/eslint-config/schematics/index.it.spec.ts to validate this fix.
Package name
core
Package version
11.5.3
Reproduction steps
Create a project with o3r generator, then generate a library:
npm create @o3r project cd project ng g library lib
Current result
There are TS issues in the generated
libs/library/schematics/ng-add/index.ts
file:fs.readFileSync
is used, butfs
is not imported. We should addimport * as fs from 'node:fs';
in the imports section.Replace
const dependenciesToInstall = []
byconst dependenciesToInstall: string[] = []
to avoid lint issues. Same fordependenciesToNgAdd
.In
ngAddFn
function, the linereturn async (tree, context) => {
raises a lint issue becausecontext
is not used. We could replace it by_context
.Lines 36 to 38 have compilation issues.
To fix them, replace:
By:
Expected result
All the above issues should be fixed in the template file that is used to generate the
ng-add/index.ts
file.Additional comments
No response
The text was updated successfully, but these errors were encountered: