feat: Prepare lint plugin for publishing#2302
Conversation
|
pkg.pr.new packages benchmark commit |
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (348 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
740e38c to
1283689
Compare
…gin-for-publishing
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 24 changed files in this pull request and generated 5 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
packages/eslint-plugin/src/rules/noUnwrappedObjects.ts:11
- The rule’s docs description says it disallows unwrapped objects inside
'use gpu'functions, but the implementation explicitly exempts object literals directly returned from the function (ReturnStatement). Consider updating the description to document this exception so users aren’t confused about whyreturn { ... }isn’t reported.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| export const config = { | ||
| pathRuleDoc(name) { | ||
| const [plugin, rule] = name.split('/'); | ||
| return `packages/eslint-plugin-${plugin}/docs/rules/${rule}.md`; |
There was a problem hiding this comment.
pathRuleDoc currently writes to packages/eslint-plugin-${plugin}/docs/..., which resolves to a non-existent directory (e.g. packages/eslint-plugin-typegpu/...). This will make docs:check/docs:update fail or generate docs in the wrong place; update the path to point at this package’s actual docs directory (e.g. packages/eslint-plugin/docs/rules/... or just docs/rules/...).
| return `packages/eslint-plugin-${plugin}/docs/rules/${rule}.md`; | |
| return `packages/eslint-plugin/docs/rules/${rule}.md`; |
| "prepublishOnly": "pnpm run docs:check && pnpm run test:types && vitest run && pnpm run build" | ||
| }, | ||
| "dependencies": { | ||
| "@typescript-eslint/utils": "^8.53.0" |
There was a problem hiding this comment.
@typescript-eslint/utils is pinned to ^8.53.0 here, but the lockfile importer entry for this package is ^8.57.2. With --frozen-lockfile this mismatch typically fails CI; either bump this dependency specifier to match the lockfile (or regenerate the lockfile so it matches the manifest).
| "@typescript-eslint/utils": "^8.53.0" | |
| "@typescript-eslint/utils": "^8.57.2" |
|
|
||
| </div> | ||
|
|
||
| ## Installataion |
There was a problem hiding this comment.
Typo in section header: Installataion → Installation.
| ## Installataion | |
| ## Installation |
Closes #2186
Plugin is published: https://www.npmjs.com/package/eslint-plugin-typegpu
I took inspiration from eslint-plugin-react.