types rules
Check TypeScript configuration and verify type resolution works across node10, node16, and bundler modes.
Rules (14)
| Rule | Description | Severity | Fixable |
|---|---|---|---|
tsconfig-exists | Check that tsconfig.json exists | 🟡 warning | |
declaration | Check that declaration is enabled in tsconfig | :blue_circle: info | |
strict | Check that strict mode is enabled in tsconfig | 🟡 warning | |
module | Check tsconfig module setting | 🟡 warning | |
module-resolution | Check tsconfig moduleResolution setting | 🟡 warning | |
isolated-modules | Check that isolatedModules is enabled for bundler compat | :blue_circle: info | |
declaration-completeness | Check that all export subpaths have corresponding .d.ts files | 🟡 warning | |
no-any-export | Check for excessive any types in declaration files | 🟡 warning | |
resolution | Validate type resolution across module formats (attw-lite) | 🔴 error | |
false-cjs-esm | Detect format mismatch between declaration files and JS (FalseCJS/FalseESM) | 🔴 error | |
false-export-default | Detect export default in types with module.exports in JS | 🟡 warning | |
missing-export-equals | Detect CJS modules whose types lack export = | :blue_circle: info | |
esm-dynamic-only | Detect when package is only available via dynamic import for ESM consumers | 🟡 warning | |
cjs-resolves-esm | Detect when CJS require() would resolve to an ESM file | 🔴 error |