Skip to content
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 filename to the rule context #17108

Merged
merged 3 commits into from Apr 29, 2023
Merged

feat: add filename to the rule context #17108

merged 3 commits into from Apr 29, 2023

Conversation

snitin315
Copy link
Contributor

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)

Refers #16999

This PR creates context.filename and deprecates context.getFilename().

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

Did I miss any reference?

@snitin315 snitin315 requested a review from a team as a code owner April 22, 2023 15:45
@eslint-github-bot eslint-github-bot bot added the feature This change adds a new feature to ESLint label Apr 22, 2023
@netlify
Copy link

netlify bot commented Apr 22, 2023

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 365bb45
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/644b880cd229590008c2a862
😎 Deploy Preview https://deploy-preview-17108--docs-eslint.netlify.app/extend/custom-rules
📱 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 settings.

@snitin315 snitin315 mentioned this pull request Apr 22, 2023
39 tasks
docs/src/extend/custom-rules.md Outdated Show resolved Hide resolved
tests/lib/linter/linter.js Show resolved Hide resolved
docs/src/extend/custom-rules.md Outdated Show resolved Hide resolved
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
@snitin315 snitin315 merged commit 52018f2 into main Apr 29, 2023
22 checks passed
@snitin315 snitin315 deleted the feat/context-filename branch April 29, 2023 01:47
@snitin315 snitin315 added the accepted There is consensus among the team that this change meets the criteria for inclusion label Apr 29, 2023
aladdin-add added a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
aladdin-add added a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
aladdin-add added a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
aladdin-add added a commit to aladdin-add/eslint that referenced this pull request Jun 15, 2023
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Oct 27, 2023
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion feature This change adds a new feature to ESLint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants