-
Notifications
You must be signed in to change notification settings - Fork 53
Chore - Eslint 9 - devDependencies #3082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0c2bd16 The changes in this PR will be included in the next version bump. This PR includes changesets to release 93 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
* origin/main: Support sonar scans on forks (#3766) Chore add sonar workflow (#3775) chore: apply latest changesets fix: encode service url for RAP (#3784) chore: apply latest changesets fix(store): correction for merging systems added to legacy path (#3782) Update CODEOWNERS for fiori-mcp-server and eslint-plugin (#3780) chore: apply latest changesets fix(mcp-server): Pass 'layer' and 'ui5Version' to the specification API method exportConfig. (#3776) chore: apply latest changesets feat(store): migrate backend system file from .fioritools to .saptools (#3768)
* origin/main: chore: apply latest changesets 3792/handle missing mta binary (#3793) chore: apply latest changesets feat(sap-systems): adds new SAP Systems extension (#3752) chore: apply latest changesets fix(backend-proxy-middleware): wrong 'path' and 'pathReplace' in case of appStudio full destination (#3787)
* origin/main: (37 commits) chore: apply latest changesets chore - upgrade ui5 devDeps (#3771) correct publisher to SAPOSS (#3817) chore: apply latest changesets fix: cloud system render logic, message wording, test connection logging (#3811) chore: apply latest changesets chore: bump application insights to 2.9.8 (#3812) chore: apply latest changesets fix(fiori-mcp): instrumentation key replacement (#3810) lint error handling for forks fix: update repository reference in checkout step of lint workflow (#3808) chore: apply latest changesets chore: add badge to changelog and deep link to package to readme.md files (#3791) chore: apply latest changesets chore: update pipeline to publish extensions as draft (#3807) chore: apply latest changesets fix(fiori-annotation-api): move and delete (#3785) chore: apply latest changesets generalise pipeline config (#3804) chore: apply latest changesets ...
* origin/main: chore: apply latest changesets feat(create): auto generate readme on build (#3760) chore: apply latest changesets Resolve Transport Request Checks for Download Quick Fiori App Deploy (#3819) test: v4 project builder (#3682) chore: apply latest changesets fix: bump specVersion to v4.0 (#3744) chore: apply latest changesets test: Integration test for fiori MCP using promptfoo (#3705) chore: apply latest changesets fix: move message to store creds prompt, tests, changeset (#3820) chore: apply latest changesets fix: bump fallback versions (#3813)
* origin/main: chore: apply latest changesets update building block svg (#3826)
* origin/main: Move cpe integration test (#3783) chore: apply latest changesets fix(fiori-docs-embeddings): use existing ux-ui5-readme in case of error (#3830) chore: apply latest changesets feat(ADP)(OData): Display in the Info center the OData service connectivity status at startup of the Visual Editor. (#3560) Revert "fix: run tests on windows (#3823)" (#3835) fix for lint commit not starting the main build on the PR (#3833) chore: apply latest changesets Updating remaining ui5 cli references to v4 and align version (#3824) chore: apply latest changesets feat: Replace existing inbounds scenario now replaces all inbounds in FLP configuration generator for ADP (#3773) chore: apply latest changesets fix: improve handling for saving systems (#3828) chore: apply latest changesets chore: Update `@sap/cf-tools` version to latest to avoid security issues (#3809) chore: apply latest changesets feat(fiori-docs-embeddings): add @sap-ux/create/README.md as resource (#3779) fix: run tests on windows (#3823)
* origin/main: fix(deps): update dependency js-yaml [security] (#3840) chore: apply latest changesets fix(odata-service-inquirer): Validation messages for credential fail (#3815) chore: apply latest changesets sap-systems-ext: update extension name and readme (#3849) chore: apply latest changesets fix(sap-systems-ext): title update and import fix for sap systems ext (#3843) chore: apply latest changesets fix(odata-service-inq): add try catch to fetching backend systems from store (#3839) chore: apply latest changesets feat: Store view name as part of additional info in fragment body (#3696) chore: apply latest changesets feat(fpm-writer): Filter building block custom filter (#3767) chore: apply latest changesets fix(mcp-server): allow to create object pages in v2 (#3795) feat: add test cases for java project (#3825) chore: apply latest changesets fix: inlude require when generate custom field fragment with event handler (#3836)
* origin/eslint9: revert templates and snapshots
* origin/main: chore: apply latest changesets feat: menu actions generator (#3521) chore: apply latest changesets chore: remove mkdirp usage and update dependencies (#3871) chore: apply latest changesets feat: save value list reference metadata (#3794) chore: apply latest changesets fix: alignment fallback ui5 versions (#3861) chore: apply latest changesets feat(fiori-app-sub-generator): 36139-remove-code-assist (#3860) chore: apply latest changesets chore - update sap-ux-odata deps (#3863)
|
heimwege
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments (part 1 up to package 'store')
| }, | ||
| languageOptions: { | ||
| parserOptions: { | ||
| parser: tsParser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other places (e.g. examples/simple-generator/eslint.config.js) we have parser: '@typescript-eslint/parser', but I like this notation with the import more. Should we harmonize this?
| languageOptions: { | ||
| 'parser': tsParser | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have this multiple times in here? Can't this be merged into one?
| */ | ||
| // eslint-disable-next-line jsdoc/require-jsdoc | ||
|
|
||
| /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best JSDoc ever. Please either delete or provide content 🐱
| import type { BackendSystem } from '@sap-ux/store'; | ||
| import { AuthenticationType } from '@sap-ux/store'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import type { BackendSystem } from '@sap-ux/store'; | |
| import { AuthenticationType } from '@sap-ux/store'; | |
| import { type BackendSystem, AuthenticationType } from '@sap-ux/store'; |
| @@ -0,0 +1,13 @@ | |||
| const base = require('../../eslint.config.js'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That package is deprecated (https://www.npmjs.com/package/@sap-ux/cards-editor-config-writer). Let's not do any changes here.
| "lint:fix": "eslint . --fix", | ||
| "lint:fix:all": "eslint . --fix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix = fix:all
| @@ -38,10 +38,25 @@ import BaseDialog from './BaseDialog.controller'; | |||
| const radix = 10; | |||
|
|
|||
| export type AddFragmentModel = JSONModel & { | |||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSDoc hell also for package preview-middleware-client
| jsdoc | ||
| }, | ||
| rules: { | ||
| quotes: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are much more rules than before in the config? What happened here?
| @@ -22,6 +22,15 @@ export class SystemPanel implements Disposable { | |||
| readonly isGuidedAnswersEnabled: boolean = !!extensions.getExtension(GUIDED_ANSWERS_EXTENSION_ID); | |||
| readonly disposeCallback?: DisposeCallback; | |||
|
|
|||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again some JSDoc issues
| @@ -7,18 +7,35 @@ import type { Disposable } from 'vscode'; | |||
| export class PanelManager<T extends Disposable> { | |||
| readonly panels = new Map<string, T>(); | |||
|
|
|||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again some JSDoc issues in this file
heimwege
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and here the comments for packages store to the end
| constructor(logger: Logger, options: ServiceOptions = {}) { | ||
| this.logger = logger; | ||
| this.storeDirectory = basedir(options); | ||
| } | ||
|
|
||
| /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSDoc hell in the store package as well
| tsconfigRootDir: __dirname, | ||
| project: './tsconfig.eslint.json', | ||
| }, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here JSDoc rules missing from former .eslintrc.js
| @@ -42,7 +42,6 @@ export const duration = ( | |||
| evtName: EventName, | |||
| sampleRate: SampleRate | |||
| ): Function => { | |||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this no longer an issue? Should still be reported by the linter, right? Affects the whole telemetry package
| @@ -23,8 +23,8 @@ | |||
| "build": "npm-run-all -l -p build:extension build:copyfiles build:storybook", | |||
| "build:extension": "tsc --build --pretty", | |||
| "build:copyfiles": "copyfiles --up 1 \"./src/**/*.scss\" ./dist/", | |||
| "lint": "eslint . --ext .ts,.tsx", | |||
| "lint:fix": "eslint . --ext .ts,.tsx --fix", | |||
| "lint": "eslint . ", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many blanks... and do we even need the dot?
| "lint": "eslint . ", | |
| "lint": "eslint .", |
| import type { Manifest } from '@sap-ux/project-access'; | ||
| import { ReuseLibType } from '@sap-ux/project-access'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import type { Manifest } from '@sap-ux/project-access'; | |
| import { ReuseLibType } from '@sap-ux/project-access'; | |
| import { type Manifest, ReuseLibType } from '@sap-ux/project-access'; |
| @@ -19,7 +19,7 @@ import type { ProxyConfig } from '../../src/base/types'; | |||
| import type { IncomingMessage } from 'http'; | |||
| import { NullTransport, ToolsLogger } from '@sap-ux/logger'; | |||
| import type { Manifest } from '@sap-ux/project-access'; | |||
| import type { ReaderCollection } from '@ui5/fs'; | |||
| import type { ReaderCollection } from '@ui5/fs'; // eslint-disable-line sonarjs/no-implicit-dependencies | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import type { ReaderCollection } from '@ui5/fs'; // eslint-disable-line sonarjs/no-implicit-dependencies | |
| // eslint-disable-next-line sonarjs/no-implicit-dependencies | |
| import type { ReaderCollection } from '@ui5/fs'; |
| "lint:fix": "eslint . --fix", | ||
| "lint:fix:all": "eslint . --fix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix = fix:all
| @@ -21,6 +21,7 @@ | |||
| "@sap-ux-private/playwright": "workspace:*", | |||
| "@sap-ux/project-access": "workspace:*", | |||
| "@sap-ux/yaml": "workspace:*", | |||
| "@playwright/test": "1.56.1", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does that one come from? 🤔
| const { writeFile } = require('fs/promises'); | ||
| const { join } = require('path'); | ||
| const { getUI5Versions } = require('@sap-ux/ui5-info'); | ||
| import { writeFile } from 'fs/promises'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that js file really treated as ESM? If not we can't use import this here.
| }, | ||
| "devDependencies": { | ||
| "eslint": "8.57.0" | ||
| "eslint": "^9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not do this here, right? adding eslint 9 for the eslint-plugin-fiori-tools package will be done in a separate PR
| '@sap-ux-private/adaptation-editor-tests': patch | ||
| '@sap-ux/abap-deploy-config-writer': patch | ||
| '@sap-ux/cf-deploy-config-inquirer': patch | ||
| '@sap-ux/eslint-plugin-fiori-tools': patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That one should not be in here
* origin/main: (31 commits) chore: remove outdated ui5 cli and specification artefacts from package.json files (#3874) chore: apply latest changesets chore(fiori-mcp): bump package versions (#3893) test: failing tests (#3886) chore: apply latest changesets fix(fiori-mcp): improve non-cap app-gen input schema (#3891) chore: apply latest changesets fix(middlewares): add 'express' as peerDependency for middlewares (#3879) chore: apply latest changesets Feat(fiori-docs-embeddings): enhance downloaded readme files for better chunking (#3831) chore: apply latest changesets fix(fpm-writer): unique ids in fragment (#3881) chore: apply latest changesets fix(fiori-mcp): fix missing dependency (#3885) chore: apply latest changesets fix(adp-tooling): remove hard coded usage of webapp folder name (#3873) chore: apply latest changesets chore(fiori-mcp): fix pipeline (#3880) chore: apply latest changesets feat(fiori-mcp-server): add generate-fiori-ui-odata-app functionality (#3570) ...
|
There's a new package |



#2597
#2470
Chore - Eslint 9 - devDependencies only. Does no impact Fiori generated projects (that is in a follow-up PR's #3788 & #3827