-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0224946
commit 783555d
Showing
8 changed files
with
72 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
import type { problemFlags } from "../problemUtils.js"; | ||
|
||
export type Format = "auto" | "table" | "table-flipped" | "ascii" | "json"; | ||
export interface RenderOptions { | ||
ignoreRules?: (typeof problemFlags)[keyof typeof problemFlags][]; | ||
format?: Format; | ||
color?: boolean; | ||
summary?: boolean; | ||
emoji?: boolean; | ||
} | ||
|
||
export * from "./typed.js"; | ||
export * from "./untyped.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import * as core from "@arethetypeswrong/core"; | ||
|
||
export function untyped(analysis: core.UntypedResult) { | ||
console.log("This package does not contain types.\nDetails: ", analysis); | ||
return "This package does not contain types.\nDetails: " + JSON.stringify(analysis, null, 2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,11 @@ $ attw [email protected] -f table-flipped | |
This package does not contain types. | ||
Details: { packageName: 'ejs', packageVersion: '3.1.9', types: false } | ||
Details: { | ||
"packageName": "ejs", | ||
"packageVersion": "3.1.9", | ||
"types": false | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters