提交 36250524 编写于 作者: E Erich Gamma

update to tslint 4.0

上级 b2d2a79d
......@@ -47,7 +47,7 @@
],
"severity": "warning",
"pattern": {
"regexp": "(.*):(\\d+):(\\d+):(.*)$",
"regexp": "(.*)\\[(\\d+),\\s(\\d+)\\]:\\s(.*)$", // (.*)\[(\d+), (\d+)\]: (.*)
"file": 1,
"line": 2,
"column": 3,
......
......@@ -9,7 +9,7 @@ var __extends = (this && this.__extends) || function (d, b) {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var path_1 = require('path');
var Lint = require('tslint/lib/lint');
var Lint = require('tslint');
var Rule = (function (_super) {
__extends(Rule, _super);
function Rule() {
......
......@@ -5,7 +5,7 @@
import * as ts from 'typescript';
import { join, dirname } from 'path';
import * as Lint from 'tslint/lib/lint';
import * as Lint from 'tslint';
export class Rule extends Lint.Rules.AbstractRule {
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
......
......@@ -8,7 +8,7 @@ var __extends = (this && this.__extends) || function (d, b) {
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Lint = require('tslint/lib/lint');
var Lint = require('tslint');
var minimatch = require('minimatch');
var Rule = (function (_super) {
__extends(Rule, _super);
......
......@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as ts from 'typescript';
import * as Lint from 'tslint/lib/lint';
import * as Lint from 'tslint';
import * as minimatch from 'minimatch';
interface ImportPatternsConfig {
......
......@@ -8,7 +8,7 @@ var __extends = (this && this.__extends) || function (d, b) {
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Lint = require('tslint/lib/lint');
var Lint = require('tslint');
var path_1 = require('path');
var Rule = (function (_super) {
__extends(Rule, _super);
......
......@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as ts from 'typescript';
import * as Lint from 'tslint/lib/lint';
import * as Lint from 'tslint';
import { join, dirname } from 'path';
interface Config {
......
......@@ -9,7 +9,7 @@ var __extends = (this && this.__extends) || function (d, b) {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var ts = require('typescript');
var Lint = require('tslint/lib/lint');
var Lint = require('tslint');
/**
* Implementation of the no-unexternalized-strings rule.
*/
......
......@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as ts from 'typescript';
import * as Lint from 'tslint/lib/lint';
import * as Lint from 'tslint';
/**
* Implementation of the no-unexternalized-strings rule.
......
......@@ -2,7 +2,6 @@
"rules": {
"no-unused-expression": true,
"no-duplicate-variable": true,
"no-duplicate-key": true,
"no-unused-variable": true,
"curly": true,
"class-name": true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册