Fix linting errors for babel-template (#18427)

This commit is contained in:
Marvin Hagemeister 2017-07-26 22:43:21 +02:00 committed by Andy
parent 50419ba7dc
commit ab4364a415
3 changed files with 2 additions and 8 deletions

View File

@ -1,5 +1,3 @@
/// <reference types="babel-generator" />
// Example from https://github.com/babel/babel/tree/master/packages/babel-template
import template = require('babel-template');
import generate from 'babel-generator';

View File

@ -1,14 +1,10 @@
// Type definitions for babel-template v6.7
// Type definitions for babel-template 6.25
// Project: https://github.com/babel/babel/tree/master/packages/babel-template
// Definitions by: Troy Gerwien <https://github.com/yortus>
// Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="babylon" />
/// <reference types="babel-types" />
import { BabylonOptions } from 'babylon';
import * as t from 'babel-types';
type Node = t.Node;
@ -20,4 +16,3 @@ export = template;
declare function template(code: string, opts?: BabylonOptions): UseTemplate;
type UseTemplate = (nodes?: {[placeholder: string]: Node}) => Node;

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }