Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Use @types/babel-code-frame to import babel-code-frame (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 authored and adidahiya committed Dec 8, 2016
1 parent 8e6a0ce commit 6364432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"update-notifier": "^1.0.2"
},
"devDependencies": {
"@types/babel-code-frame": "^6.16.0",
"@types/chai": "^3.4.34",
"@types/colors": "^0.6.33",
"@types/diff": "0.0.31",
Expand Down
5 changes: 1 addition & 4 deletions src/formatters/codeFrameFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ import {AbstractFormatter} from "../language/formatter/abstractFormatter";
import {IFormatterMetadata} from "../language/formatter/formatter";
import {RuleFailure} from "../language/rule/rule";

import * as codeFrame from "babel-code-frame";
import * as colors from "colors";
// TODO: once types for babel-code-frame are published, add it as a dependency and use import
// @types/babel-code-frame PR: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13102
// tslint:disable-next-line:no-var-requires
const codeFrame = require("babel-code-frame");

import * as Utils from "../utils";

Expand Down

1 comment on commit 6364432

@SimonSchick
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to have broken the build, please refer to: DefinitelyTyped/DefinitelyTyped#13102 (comment)

Please sign in to comment.