AI-native design editor. Open-source Figma alternative.
@open-pencil/oxlint-plugin
The published Oxlint plugin. lint/plugin.js combines it with this repository's own rules from tools/checks/lint into the one open-pencil plugin oxlint.json configures.
- A rule belongs here only when it holds for any TypeScript project. Paths, packages, and names a project chooses are rule options, set in
oxlint.json, never constants in the rule (schemaModulesinsrc/rules/quality/valibot-schemas.ts,ignoredImportsinsrc/rules/naming.ts); rules about the app, Vue, Tauri, or the scene graph stay intools/checks/lint. - Type rules with
@oxlint/plugins(defineRule,ESTree), never@typescript-eslint/utils, so the published declarations need no other package (check:packages). - Import the package's own modules through
#oxlint-plugin/*without an extension:lint/plugin.jsloads the source under Node, which resolves the alias to the.tsfile, sobun run lintneeds no build. - A new rule is registered in
src/index.ts, listed inREADME.md, turned on inrecommended.jsonunless it fits only some code (then it joinsOPT_INintests/recommended.test.ts), and tested intests/rules/, mirroring its source file, throughtests/helpers/lint.ts, which runs Oxlint on the package source. recommended.jsonholds the built-in rules every OpenPencil repository follows; this repository'soxlint.jsonextends it and adds only its own rules, options, and overrides.- Renaming or removing a rule breaks consumers' configurations; record it under
breakingin the changelog.