Skip to content

Conversation

@devinea
Copy link
Member

@devinea devinea commented Apr 2, 2025

#2597
#2470

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

@changeset-bot
Copy link

changeset-bot bot commented Apr 2, 2025

🦋 Changeset detected

Latest commit: 0c2bd16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 93 packages
Name Type
@sap-ux/ui5-library-reference-sub-generator Patch
@sap-ux/abap-deploy-config-sub-generator Patch
@sap-ux/cds-odata-annotation-converter Patch
@sap-ux/cf-deploy-config-sub-generator Patch
@sap-ux-private/control-property-editor-common Patch
@sap-ux/deploy-config-generator-shared Patch
@sap-ux/ui5-library-reference-inquirer Patch
@sap-ux/xml-odata-annotation-converter Patch
@sap-ux/repo-app-import-sub-generator Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/ui5-library-reference-writer Patch
@sap-ux/abap-deploy-config-inquirer Patch
@sap-ux/deploy-config-sub-generator Patch
@sap-ux/odata-annotation-core-types Patch
@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
@sap-ux-private/preview-middleware-client Patch
@sap-ux/ui5-library-sub-generator Patch
@sap-ux/backend-proxy-middleware Patch
@sap-ux/flp-config-sub-generator Patch
@sap-ux/mockserver-config-writer Patch
@sap-ux/ui-service-sub-generator Patch
@sap-ux/ui5-application-inquirer Patch
@sap-ux/cf-deploy-config-writer Patch
@sap-ux/control-property-editor Patch
@sap-ux/fiori-app-sub-generator Patch
@sap-ux/project-input-validator Patch
@sap-ux/serve-static-middleware Patch
@sap-ux/fiori-freestyle-writer Patch
@sap-ux/fiori-generator-shared Patch
@sap-ux/odata-service-inquirer Patch
@sap-ux/sap-systems-ext-webapp Patch
@sap-ux/ui5-application-writer Patch
@sap-ux-private/ui-prompting-examples Patch
@sap-ux/cds-annotation-parser Patch
@sap-ux/fiori-docs-embeddings Patch
@sap-ux/fiori-elements-writer Patch
@sap-ux/guided-answers-helper Patch
@sap-ux/jest-runner-puppeteer Patch
@sap-ux/odata-annotation-core Patch
@sap-ux/sap-systems-ext-types Patch
@sap-ux/annotation-generator Patch
@sap-ux/fiori-annotation-api Patch
@sap-ux/fiori-tools-settings Patch
@sap-ux/jest-environment-ui5 Patch
@sap-ux/odata-service-writer Patch
@sap-ux/ui5-library-inquirer Patch
@sap-ux/ui5-proxy-middleware Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/text-document-utils Patch
@sap-ux/ui-service-inquirer Patch
@sap-ux/jest-file-matchers Patch
@sap-ux/odata-entity-model Patch
@sap-ux/odata-vocabularies Patch
@sap-ux/preview-middleware Patch
@sap-ux/ui5-library-writer Patch
@sap-ux/app-config-writer Patch
@sap-ux/cap-config-writer Patch
@sap-ux/environment-check Patch
@sap-ux/project-integrity Patch
@sap-ux/reload-middleware Patch
@sap-ux/generator-simple-fe Patch
@sap-ux/fiori-mcp-server Patch
@sap-ux/axios-extension Patch
@sap-ux/inquirer-common Patch
sap-ux-sap-systems-ext Patch
@sap-ux/ui5-test-writer Patch
@sap-ux/deploy-tooling Patch
@sap-ux/feature-toggle Patch
@sap-ux/project-access Patch
@sap-ux/fe-fpm-writer Patch
@sap-ux/generator-adp Patch
@sap-ux/launch-config Patch
@sap-ux/system-access Patch
@sap-ux/ui-components Patch
@sap-ux/nodejs-utils Patch
@sap-ux/ui-prompting Patch
@sap-ux/adp-tooling Patch
@sap-ux/fe-fpm-cli Patch
@sap-ux-private/playwright Patch
@sap-ux/ui5-config Patch
@sap-ux/odata-cli Patch
@sap-ux/btp-utils Patch
@sap-ux/telemetry Patch
@sap-ux/ui5-info Patch
@sap-ux/create Patch
@sap-ux/logger Patch
@sap-ux/store Patch
@sap-ux/i18n Patch
@sap-ux/yaml Patch
@sap-ux/types Patch

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

devinea and others added 15 commits October 30, 2025 15:39
* 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/main:
  chore: apply latest changesets
  fix: System SAPUI5 version not available for selection in ADP generator (#3851)
  chore: apply latest changesets
  Fix(preview-middleware): adjust fallback ui5 version (#3722)
* origin/eslint9:
  revert templates and snapshots
* origin/main:
  chore: apply latest changesets
  Fix(cap-config-writer): min cds version (#3856)
  feat: New public method for `ApplicationAccess` - `readManifest`, `readFlexChanges`, `readAnnotationFiles` (#3854)
@devinea devinea changed the title WIP - Eslint 9 Chore - Eslint 9 - devDependencies Nov 25, 2025
@devinea devinea marked this pull request as ready for review November 25, 2025 11:59
@devinea devinea requested review from a team as code owners November 25, 2025 11:59
@devinea devinea requested review from a team as code owners November 25, 2025 11:59
devinea and others added 6 commits November 25, 2025 13:52
* 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)
@sonarqubecloud
Copy link

Copy link
Contributor

@heimwege heimwege left a 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,
Copy link
Contributor

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?

Comment on lines +39 to +41
languageOptions: {
'parser': tsParser
},
Copy link
Contributor

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

/**
Copy link
Contributor

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 🐱

Comment on lines +14 to +15
import type { BackendSystem } from '@sap-ux/store';
import { AuthenticationType } from '@sap-ux/store';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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');
Copy link
Contributor

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.

Comment on lines +24 to +25
"lint:fix": "eslint . --fix",
"lint:fix:all": "eslint . --fix",
Copy link
Contributor

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 & {
/**
Copy link
Contributor

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: [
Copy link
Contributor

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;

/**
Copy link
Contributor

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>();

/**
Copy link
Contributor

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

Copy link
Contributor

@heimwege heimwege left a 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);
}

/**
Copy link
Contributor

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',
},
}
Copy link
Contributor

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
Copy link
Contributor

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 . ",
Copy link
Contributor

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?

Suggested change
"lint": "eslint . ",
"lint": "eslint .",

Comment on lines +3 to +4
import type { Manifest } from '@sap-ux/project-access';
import { ReuseLibType } from '@sap-ux/project-access';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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';

Comment on lines +16 to +17
"lint:fix": "eslint . --fix",
"lint:fix:all": "eslint . --fix",
Copy link
Contributor

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",
Copy link
Contributor

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';
Copy link
Contributor

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"
Copy link
Contributor

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
Copy link
Contributor

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)
  ...
@heimwege
Copy link
Contributor

heimwege commented Dec 4, 2025

There's a new package backend-proxy-middelware-cf that needs to be adjusted as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants