Skip to content

refactor: remove options json#46

Merged
chenjiahan merged 1 commit into
masterfrom
chenjiahan/remove-options-json
May 13, 2026
Merged

refactor: remove options json#46
chenjiahan merged 1 commit into
masterfrom
chenjiahan/remove-options-json

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR removes the standalone options JSON schema file and keeps plugin-specific option filtering in src/options.js, avoiding the JSON module import while preserving getESLintOptions behavior.

Copilot AI review requested due to automatic review settings May 13, 2026 05:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the standalone src/options.json schema file and replaces its usage with an explicit list of plugin-only option keys in src/options.js, preserving the behavior of getESLintOptions while avoiding JSON module imports.

Changes:

  • Deleted src/options.json and removed its JSON import usage.
  • Added pluginOnlyOptionKeys in src/options.js to filter plugin-specific options before passing options to ESLint.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/options.json Removed the standalone options schema JSON file.
src/options.js Replaced schema-driven option filtering with a hardcoded list of plugin-only option keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit e6b21c4 into master May 13, 2026
10 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/remove-options-json branch May 13, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants