oracle-gaps: the owns refusal should name the fix (shared const, as const, spreads)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- eslint, javascript
Research direction
Start in oracle-gaps/owners.mjs around line 174, where the 'not a literal list' refusal is raised, and read readOwns to see which initializer forms it accepts. Done means the refusal names a concrete fix, and the CLI and the proposed eslint-plugin-oracles rule agree on the accepted forms, including whether as const on a literal array is allowed. The as-const and plugin decisions need maintainer input before coding.
Written by the indexing model from the issue text.
Description
Reported from an adopter's first session, at c58b0c2.
Problem. The adopter shared one const OWNS = [...] as const across four oracleProperty calls. The CLI refuses that with "its owns list is not a literal list" (oracle-gaps/owners.mjs:174). readOwns also rejects { owns } shorthand, spreads, and owns: [...] as const, because it requires the initializer to be an ArrayLiteralExpression of string literals.
Proposal.
- Give the refusal a fix line, such as "write owns inline as owns: ['src/x.ts#fn'] in each call".
- Possibly add an eslint-plugin-oracles rule, so this shows up in lint before a gap-check run.
The CLI and the plugin must agree on exactly which forms they accept. Also decide whether as const on a literal array should be accepted, since it doesn't change the static list.
This issue was written by Isaac.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 1
- Avg merge
- 6h
- Merged PRs (30d)
- 56
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TanStack/oracles
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
TanStack/oracles#120 · 1 comment ·
Maintainers usually reply within 1 day
-
windows
Difficulty 4/5 3-5 days Newbie friendliness 48/100
TanStack/oracles#118 · 1 comment ·
Maintainers usually reply within 1 day
All issues in TanStack/oracles
Similar issues
-
入群码过期Open
Difficulty 1/5 Under an hour Newbie friendliness 84/100
aliyun/ai-agent-handbook#29 · 1 comment ·
-
docs documentation need-triage SaaS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/cloudstack#14719 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day