Skip to content

Commit 090109d

Browse files
rhysdalexcrichton
authored andcommitted
disable eslint in generated type definition file (#1908)
1 parent 1c08e2b commit 090109d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<'a> Context<'a> {
8484
Ok(Context {
8585
globals: String::new(),
8686
imports_post: String::new(),
87-
typescript: "/* tslint:disable */\n".to_string(),
87+
typescript: "/* tslint:disable */\n/* eslint-disable */\n".to_string(),
8888
exposed_globals: Some(Default::default()),
8989
imported_names: Default::default(),
9090
js_imports: Default::default(),

crates/cli-support/src/wasm2es6js.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Config {
4545
}
4646

4747
pub fn typescript(module: &Module) -> Result<String, Error> {
48-
let mut exports = format!("/* tslint:disable */\n");
48+
let mut exports = format!("/* tslint:disable */\n/* eslint-disable */\n");
4949

5050
for entry in module.exports.iter() {
5151
let id = match entry.item {

0 commit comments

Comments
 (0)