Run TSLint in Azure Pipelines (#3639)

This commit is contained in:
Matt Irvine
2018-12-19 12:17:23 -08:00
committed by GitHub
parent 7f950ddb80
commit db145b4999
29 changed files with 117 additions and 62 deletions

View File

@@ -4,9 +4,8 @@
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
import { JSONObject } from './jsonext';
import { JSONObject, isPrimitive } from './jsonext';
import { MimeModel } from './mimemodel';
import * as JSONExt from './jsonext';
import { nbformat } from './nbformat';
import { nb } from 'sqlops';
@@ -77,7 +76,7 @@ export function getBundleOptions(
*/
export function extract(value: JSONObject, key: string): {} {
let item = value[key];
if (JSONExt.isPrimitive(item)) {
if (isPrimitive(item)) {
return item;
}
return JSON.parse(JSON.stringify(item));