Skip to content

Conversation

@nameless-mc
Copy link
Contributor

Why

The ESLint configuration in create-plugin templates was not using the @cybozu/eslint-config flat config API correctly, causing npm run lint to fail in generated plugin projects.

Specific issues:

  • minimum template: Attempted to spread kintone(), prettier(), etc. directly without calling them as functions
  • modern template: Used presets/prettier which does not include kintone globals, resulting in kintone is not defined errors

What

  • minimum template: Fixed to call kintone() and prettier() as functions
  • modern template: Changed from presets/prettier to presets/kintone-customize-prettier (includes kintone globals)
  • test:ci: Fixed pnpm test test:generator to pnpm test && pnpm test:generator to ensure generator tests run correctly

How to test

pnpm --filter @kintone/create-plugin test:generator

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed pnpm lint and pnpm test on the root directory.

@nameless-mc nameless-mc self-assigned this Dec 25, 2025
@nameless-mc nameless-mc requested a review from a team as a code owner December 25, 2025 02:16
@nameless-mc nameless-mc requested review from chihiro-adachi, Copilot and tasshi-me and removed request for a team and Copilot December 25, 2025 02:16
@github-actions github-actions bot added the pkg: create-plugin @kintone/create-plugin label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: create-plugin @kintone/create-plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants