eslint / eslint

Find and fix problems in your JavaScript code.
https://eslint.org
MIT License
24.39k stars 4.4k forks source link

docs: update to eslint v9 in custom-rule-tutorial #18383

Closed aladdin-add closed 3 weeks ago

aladdin-add commented 3 weeks ago

fixes https://github.com/eslint/eslint/issues/18382

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ x] Documentation update [ ] Bug fix (template) [ ] New rule (template) [ ] Changes an existing rule (template) [ ] Add autofix to a rule [ ] Add a CLI option [ ] Add something to the core [ ] Other, please explain:

What changes did you make? (Give an overview)

Is there anything you'd like reviewers to focus on?

netlify[bot] commented 3 weeks ago

Deploy Preview for docs-eslint ready!

Name Link
Latest commit 31a4e1e31c65641edf68102dd6c94f5b2f6f5144
Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/662787b13884870008b947cd
Deploy Preview https://deploy-preview-18383--docs-eslint.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mdjermanovic commented 3 weeks ago

Few more places to update to v9:

https://github.com/eslint/eslint/blob/005ee25f29998c8012d1ed95b62f04b85da4d543/docs/src/extend/custom-rule-tutorial.md?plain=1#L365

https://github.com/eslint/eslint/blob/005ee25f29998c8012d1ed95b62f04b85da4d543/docs/src/extend/custom-rule-tutorial.md?plain=1#L382-L385

https://github.com/eslint/eslint/blob/005ee25f29998c8012d1ed95b62f04b85da4d543/docs/src/extend/custom-rule-tutorial.md?plain=1#L394-L396