Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dts.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"#exports": []
},
"types-!~{00b}~.d.mts": {
"AttwOptions": "interface AttwOptions extends CheckPackageOptions {\n module?: typeof _$_arethetypeswrong_core0\n profile?: 'strict' | 'node16' | 'esm-only'\n level?: 'error' | 'warn'\n ignoreRules?: string[]\n}",
"AttwOptions": "interface AttwOptions extends CheckPackageOptions {\n module?: typeof _$_arethetypeswrong_core0\n profile?: 'strict' | 'node16' | 'esm-only'\n level?: 'error' | 'warn'\n ignoreRules?: ('no-resolution' | 'untyped-resolution' | 'false-cjs' | 'false-esm' | 'cjs-resolves-to-esm' | 'fallback-condition' | 'cjs-only-exports-default' | 'named-exports' | 'false-export-default' | 'missing-export-equals' | 'unexpected-module-syntax' | 'internal-resolution-error' | (string & {}))[]\n}",
"BuildContext": "interface BuildContext {\n options: ResolvedConfig\n hooks: Hookable<TsdownHooks>\n}",
"ChunkAddon": "type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string",
"ChunkAddonFunction": "type ChunkAddonFunction = (_: { format: Format; fileName: string }) => ChunkAddonObject | string | undefined",
Expand Down
16 changes: 15 additions & 1 deletion src/features/pkg/attw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,21 @@ export interface AttwOptions extends CheckPackageOptions {
* ignoreRules: ['no-resolution', 'false-cjs']
* ```
*/
ignoreRules?: string[]
ignoreRules?: (
| 'no-resolution'
| 'untyped-resolution'
| 'false-cjs'
| 'false-esm'
| 'cjs-resolves-to-esm'
| 'fallback-condition'
| 'cjs-only-exports-default'
| 'named-exports'
| 'false-export-default'
| 'missing-export-equals'
| 'unexpected-module-syntax'
| 'internal-resolution-error'
| (string & {})
)[]
}

/**
Expand Down
Loading