Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: fix linter and sca warnings
Fix the following npm lint warnings: /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/data-job-page.component.ts 27:30 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 45:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 708:33 warning Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead @typescript-eslint/unbound-method /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/pages/details/data-job-details-page.component.spec.ts 14:42 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 27:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/pages/details/data-job-details-page.component.ts 16:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 35:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 335:21 warning Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead @typescript-eslint/unbound-method /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/pages/executions/data-job-execution-status/data-job-execution-status.component.html 16:26 warning Avoid calling expressions in templates @angular-eslint/template/no-call-expression 17:26 warning Avoid calling expressions in templates @angular-eslint/template/no-call-expression /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/pages/executions/data-job-executions-page/data-job-executions-page.component.ts 6:21 warning 'OnInit' is defined but never used @typescript-eslint/no-unused-vars 184:21 warning Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead @typescript-eslint/unbound-method 213:14 warning Lifecycle interface 'OnInit' should be implemented for method 'ngOnInit'. (https://angular.io/styleguide#style-09-01) @angular-eslint/use-lifecycle-interface 251:25 warning Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead @typescript-eslint/unbound-method /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-jobs-manage/components/grid/data-jobs-manage-grid.component.ts 11:30 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 19:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/widgets/widget-execution-status-gauge/widget-execution-status-gauge.component.html 27:32 warning Avoid calling expressions in templates @angular-eslint/template/no-call-expression /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/data-pipelines.module.ts 26:37 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 31:8 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 184:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/model/toast-definitions.model.ts 6:30 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates 8:23 warning '/Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/node_modules/@versatiledatakit/shared/fesm2015/versatiledatakit-shared.mjs' imported multiple times import/no-duplicates /Users/mdilyan/Projects/versatile-data-kit/projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/shared/utils/data-job.util.ts 47:37 warning Avoid referencing unbound methods which may cause unintentional scoping of `this`. If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead @typescript-eslint/unbound-method Signed-off-by: Dilyan Marinov <[email protected]>
- Loading branch information