mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-05 19:53:55 +03:00
disable eslint in generated type definition file (#1908)
This commit is contained in:
parent
1c08e2b48b
commit
090109dea7
@ -84,7 +84,7 @@ impl<'a> Context<'a> {
|
||||
Ok(Context {
|
||||
globals: String::new(),
|
||||
imports_post: String::new(),
|
||||
typescript: "/* tslint:disable */\n".to_string(),
|
||||
typescript: "/* tslint:disable */\n/* eslint-disable */\n".to_string(),
|
||||
exposed_globals: Some(Default::default()),
|
||||
imported_names: Default::default(),
|
||||
js_imports: Default::default(),
|
||||
|
@ -45,7 +45,7 @@ impl Config {
|
||||
}
|
||||
|
||||
pub fn typescript(module: &Module) -> Result<String, Error> {
|
||||
let mut exports = format!("/* tslint:disable */\n");
|
||||
let mut exports = format!("/* tslint:disable */\n/* eslint-disable */\n");
|
||||
|
||||
for entry in module.exports.iter() {
|
||||
let id = match entry.item {
|
||||
|
Loading…
Reference in New Issue
Block a user