mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-03 17:42:16 +00: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 {
|
Ok(Context {
|
||||||
globals: String::new(),
|
globals: String::new(),
|
||||||
imports_post: 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()),
|
exposed_globals: Some(Default::default()),
|
||||||
imported_names: Default::default(),
|
imported_names: Default::default(),
|
||||||
js_imports: Default::default(),
|
js_imports: Default::default(),
|
||||||
|
@ -45,7 +45,7 @@ impl Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn typescript(module: &Module) -> Result<String, Error> {
|
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() {
|
for entry in module.exports.iter() {
|
||||||
let id = match entry.item {
|
let id = match entry.item {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user