disable eslint in generated type definition file (#1908)

This commit is contained in:
Linda_pp 2019-12-12 03:24:49 +09:00 committed by Alex Crichton
parent 1c08e2b48b
commit 090109dea7
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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 {