-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: use valid rule config in the custom rule example #4760
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
Conversation
Thanks for the PR, @alceil! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
A good start, thanks for sending this!
Try copy & pasting the code into the TypeScript playground and you'll see it's still missing two properties:
defaultOptions
name
Got it lemme try @JoshuaKGoldberg |
I have done the required changes please have a look @JoshuaKGoldberg |
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.
Closer! 🙂
Btw, you don't need to @ tag me to get a review - we get notifications for this repo's events. Thanks though! |
Sure |
I have done the requested changes. |
I have a doubt @JoshuaKGoldberg prettier works only on ts or other extension files right. It doesn't work on markdown files If I'm right. So I just ran prettier to the code snippet I made changes on. Is it alright? |
Prettier does work on Markdown files. It's listed on https://prettier.io and https://prettier.io/docs/en/index.html. Prettier will format code inside Markdown code blocks in the language of the code block. We can see in the PR checks that there is still a formatting issue with the code: If you click the Details link there you'll be taken to a page that shows the error log: https://github.com/typescript-eslint/typescript-eslint/runs/5748785507?check_suite_focus=true
CI is running the If this is new and inconvenient for you, let me know and I can run Prettier on it for you 🙂. We just don't by default as a lot of folks use pull requests as an opportunity to learn tooling such as Prettier. If you do want to do this yourself (yay!), click this for a more explicit list of steps than my comment above to edit in an online editor.
|
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 think you ran Prettier with a different set of settings than this repository uses. 🙂
I ran the command mentioned in your recent comments but still, It has no changes to the markdown file. I researched on the internet about it and it seems many have been facing this issue. So can you run prettier for me @JoshuaKGoldberg |
No worries, thanks for sending this & working with me on it! 💖 |
PR Checklist