Skip to content
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

feat: Add ui5lint-disable directives #327

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

RandomByte
Copy link
Member

JIRA: CPOUI5FOUNDATION-911

@RandomByte RandomByte changed the title test: Add fixture for directives feat: Add ui5lint-disable directives Sep 27, 2024
blocked: true, // IGNORE: Property "blocked" is deprecated
tap: () => console.log("Tapped") // IGNORE: Event "tap" is deprecated
});
// ui5linter-enable
Copy link
Member

Choose a reason for hiding this comment

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

as far as I see, eslint does not support line comments for eslint-disable and eslint-enable. .... only block comments are supported. So I would recommend to have the same behavior for ui5linter comment rules

Copy link
Member Author

Choose a reason for hiding this comment

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

"sap/ui/table/Table", "sap/ui/table/plugins/MultiSelectionPlugin", "sap/ui/core/Configuration", "sap/m/library"
], function(Button, DateTimeInput, includes, Device, coreLib, NavigationHandler, Table, MultiSelectionPlugin, Configuration, mobileLib) {

// ui5linter-disable-next-line ui5-linter-no-deprecated-api
Copy link
Member

@flovogt flovogt Sep 30, 2024

Choose a reason for hiding this comment

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

i am in favor of using ui5lint- instead of ui5linter-.

Why?

  • shorter, less chars
  • same as ui5lint command
  • follows eslint- comments

Copy link
Member Author

Choose a reason for hiding this comment

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

Fully agree 👍 This commit was created before that discussion, I forgot to update it.

JIRA: CPOUI5FOUNDATION-911
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.

2 participants