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 more type definitions #81

Merged
merged 3 commits into from
Jul 8, 2024
Merged

feat: Add more type definitions #81

merged 3 commits into from
Jul 8, 2024

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Jul 5, 2024

Prerequisites checklist

What is the purpose of this pull request?

Add some more low-hanging fruit types to @eslint/core

What changes did you make? (Give an overview)

Added several more types to @eslint/core that we can make use of now.

Related Issues

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

Comment on lines 77 to 90
/**
* Represents the configuration options for the core linter.
*/
export interface LinterOptionsConfig {
/**
* Indicates whether or not inline configuration is evaluated.
*/
allowInlineConfig?: boolean;

/**
* Indicates what to do when an unused disable directive is found.
*/
reportUnusedDisableDirectives?: boolean | SeverityName;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are options passed to Linter#verify() (VerifyOptions), not linterOptions in config objects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is for the config object. What am I missing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In config objects (e.g., in an eslint.config.js file), linterOptions objects have properties:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so just missed the numbers. Thanks.

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit df3263b into main Jul 8, 2024
14 checks passed
@mdjermanovic mdjermanovic deleted the types-update branch July 8, 2024 18:17
@github-actions github-actions bot mentioned this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

None yet

2 participants