-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Conversation
blocked: true, // IGNORE: Property "blocked" is deprecated | ||
tap: () => console.log("Tapped") // IGNORE: Event "tap" is deprecated | ||
}); | ||
// ui5linter-enable |
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.
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
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.
You're right, nice catch. Also see the eslint implementation: https://github.com/eslint/eslint/blob/7fb0d957c102be499d5358a74928e0ea93913371/lib/linter/linter.js#L419
"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 |
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.
i am in favor of using ui5lint-
instead of ui5linter-
.
Why?
- shorter, less chars
- same as
ui5lint
command - follows
eslint-
comments
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.
Fully agree 👍 This commit was created before that discussion, I forgot to update it.
1e3a049
to
8310167
Compare
8310167
to
968c4e0
Compare
JIRA: CPOUI5FOUNDATION-911
968c4e0
to
4063044
Compare
4063044
to
04cf2de
Compare
JIRA: CPOUI5FOUNDATION-911