-
Notifications
You must be signed in to change notification settings - Fork 3
Fix messages #153
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?
Fix messages #153
Conversation
@@ -1,5 +1,6 @@ | |||
import { findAttr, isAttributesEmpty } from "./utils/node"; | |||
import metadata from '@salesforce-ux/sds-metadata'; | |||
import { formatMessageWithSuggestions } from '../../../shared-utils/src'; |
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.
Should we use as a package or relative path?
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.
- Letz create package , but skipped from publishing
- move all rule message formatting related code into this
- update esling and stylelint plugins to use this package
- update esbuild of esling and stylelint plugins to bundle this package
Name of the package can be rule-meta
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.
Planning to hold this PR until we decide on the rule-meta end. I can create the function on top of that work. Don't want to merge two work items in this PR.
* @param suggestions Array of suggestion objects to include | ||
* @returns Stringified JSON object containing message and suggestions | ||
*/ | ||
export function formatMessageWithSuggestions(message: string, suggestions: string[]): string { |
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.
Created a function so that we can in case needed.
|
No description provided.