fix(1259-01): import io.cjs leaf directly, not the core.cjs re-export spine (#1268 lint)
Merged latest origin/next, which added lint-core-spine-imports (#1268, core.cjs spine retirement). The new prohibition-enforcement module imported output/error/ ERROR_REASON from the core.cjs re-export spine — banned for new files. Re-homed to the leaf './io.cjs' (matches graphify-/intel-command-router). lint:ci now clean.
This commit is contained in:
@@ -41,9 +41,10 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
// Import the leaf I/O module directly, not the core.cjs re-export spine (being retired, #1268).
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import core = require('./core.cjs');
|
||||
const { output, error, ERROR_REASON } = core;
|
||||
import io = require('./io.cjs');
|
||||
const { output, error, ERROR_REASON } = io;
|
||||
import { dispositionForProhibition } from './probe-core.cjs';
|
||||
import type { ProhibitionDisposition } from './probe-core.cjs';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user