Skip to content

types rules

Check TypeScript configuration and verify type resolution works across node10, node16, and bundler modes.

Rules (14)

RuleDescriptionSeverityFixable
tsconfig-existsCheck that tsconfig.json exists🟡 warning
declarationCheck that declaration is enabled in tsconfig:blue_circle: info
strictCheck that strict mode is enabled in tsconfig🟡 warning
moduleCheck tsconfig module setting🟡 warning
module-resolutionCheck tsconfig moduleResolution setting🟡 warning
isolated-modulesCheck that isolatedModules is enabled for bundler compat:blue_circle: info
declaration-completenessCheck that all export subpaths have corresponding .d.ts files🟡 warning
no-any-exportCheck for excessive any types in declaration files🟡 warning
resolutionValidate type resolution across module formats (attw-lite)🔴 error
false-cjs-esmDetect format mismatch between declaration files and JS (FalseCJS/FalseESM)🔴 error
false-export-defaultDetect export default in types with module.exports in JS🟡 warning
missing-export-equalsDetect CJS modules whose types lack export =:blue_circle: info
esm-dynamic-onlyDetect when package is only available via dynamic import for ESM consumers🟡 warning
cjs-resolves-esmDetect when CJS require() would resolve to an ESM file🔴 error

Released under the MIT License.