Skip to content

Commit

Permalink
Merge pull request #1 from auguwu/noel-pr-3
Browse files Browse the repository at this point in the history
Add `prettier-ignore` and `eslint-ignore` in generated output
  • Loading branch information
Benricheson101 authored Mar 16, 2023
2 parents 2ae91f4 + d6b2f8e commit f8bca73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub fn generate_ts(parsed: &ParsedMessages) -> String {
let code = output.code;

const UTILITY_TYPES: &'static str = include_str!("../utilityTypes.ts");
format!("{code}\n{UTILITY_TYPES}").trim().to_string()
format!("/* prettier-ignore */\n// eslint-ignore\n{code}\n{UTILITY_TYPES}").trim().to_string()
}

fn build_message_member(msg: &ParsedMessage) -> TsTypeElement {
Expand Down

0 comments on commit f8bca73

Please sign in to comment.