-
Notifications
You must be signed in to change notification settings - Fork 481
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 Linter element-templates linter plugin #3673
Conversation
3da43f0
to
0097386
Compare
0097386
to
fbb556a
Compare
Pinging @philippfromme as you already did the review on bpmn-io/bpmn-js-element-templates#3 |
fb280b4
to
7a71714
Compare
client/src/app/TabsProvider.js
Outdated
@@ -194,10 +197,16 @@ export default class TabsProvider { | |||
action: 'create-cloud-bpmn-diagram' | |||
} ]; | |||
}, | |||
getLinter(plugins) { | |||
async getLinter(plugins = [], tab, app) { |
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'm not too fond of the idea of passing the entire app here. Might as well get the tab from the app then. Usually we only pass the options (e.g. getInitialContents(options)
) or the file (e.g. canOpen(file)
). I know we need to get hold of the templates, though. 🤔
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 could limit it to getConfig
so we don't pass the whole app
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.
cf. ae885ef
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.
✅
ae885ef
to
cc1b012
Compare
closes #3357