Registry / devops / eslint-plugin-acture-migration

eslint-plugin-acture-migration

JSON →
library1.1.0jsnpmunverified

ESLint rules for acture strangler-fig migrations. v1.1.0 (stable). Ships TypeScript types. Provides two rules: `no-stale-wrap-mutation` flags public-API footguns and ensures `wrapMutation(...)` results are consumed, preventing silent graduation mistakes; `require-param-describe` enforces `.describe(...)` on command params for JSON Schema correctness. Peer dependency on ESLint >=9.0.0 (flat config). Conservative single-file detection reduces noise over cross-file analysis. Unlike generic ESLint plugins, this is purpose-built for the acture migration pattern and integrates with its `acture-migration` import path.

devopstesting
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Requires ESLint 9 flat config — CommonJS require() works in Node, but ESLint 9 expects ESM. Use default import.

import acture from 'eslint-plugin-acture-migration';

The plugin key is your choice; the rule prefix matches that key. The default import is the plugin object.

import acture from 'eslint-plugin-acture-migration'; export default [{ plugins: { acture }, rules: { 'acture/no-stale-wrap-mutation': 'warn' } }];

Recommended config enables both rules as warnings. No extra setup needed.

import acture from 'eslint-plugin-acture-migration'; export default [acture.configs.recommended];

Shows flat config setup with both rules active as warnings, enabling migration and schema-quality checks.

// eslint.config.js import acture from 'eslint-plugin-acture-migration'; export default [ { plugins: { acture }, rules: { 'acture/no-stale-wrap-mutation': 'warn', 'acture/require-param-describe': 'warn', }, }, ];
Debug
Known footguns
gotchaNamespace imports like `import * as m from 'acture-migration'` are NOT tracked by `no-stale-wrap-mutation` — only named or aliased imports work.
gotchaThe rule only checks a single file — cross-file unused exports are not flagged, leading to false negatives.
gotchaESLint version requirement: >=9.0.0 (flat config). Legacy `.eslintrc` format is not supported.
gotchaThe plugin object must be imported as default — attempting to destructure `{ rules }` will fail.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
7 hits · last 30 days
gptbot
3
mj12bot
1
Resources