-
Notifications
You must be signed in to change notification settings - Fork 16
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
Allow users to pass in a custom linting configuration #61
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot reviewed 116 out of 117 changed files in this pull request and generated no comments.
Files not reviewed (1)
- package.json: Language not supported
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more
more information
README.md
Outdated
|
||
```yml | ||
steps: | ||
- name: Check alt text #change this step to use the |
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.
#change this step to use the
I think this got cut off?
export const validate = (markdown) => | ||
(markdownlint | ||
export const validate = (markdown, config) => { | ||
const configObject = yaml.load(config) |
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.
does this function handle if the extra custom config doesn't exist?
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.
Sure does! I have a test repo that I will invite you too.
Co-authored-by: Joyce Zhu <[email protected]>
Closes: #34
What
This PR adds the ability to pass a custom linting configuration object to the github/accessibility-alt-text-bot action. The configuration will allow users to include more linting rules from the markdownlint or markdownlint-github rulesets.