Skip to content

feat: Add language to types#18917

Merged
mdjermanovic merged 1 commit intomainfrom
langtypes
Sep 18, 2024
Merged

feat: Add language to types#18917
mdjermanovic merged 1 commit intomainfrom
langtypes

Conversation

@nzakas
Copy link
Copy Markdown
Member

@nzakas nzakas commented Sep 17, 2024

Prerequisites checklist

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

[ ] 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
[x] Other, please explain:

Update types

What changes did you make? (Give an overview)

  1. Added language to Linter.Config
  2. Added languages to ESLint.Plugin
  3. Added type tests for both changes

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

This is just a first step towards fully supporting languages through the type system. At the least, it lets people create plugins containing the languages key. We will need to continue tweaking this so that rules, etc. for other languages can also be included in plugins.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion feature This change adds a new feature to ESLint

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants