mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix additional lint errors from the new dtslint (#15865)
This commit is contained in:
parent
e50f8878a5
commit
5bf5228d71
@ -161,7 +161,7 @@ If a `tslint.json` turns rules off, this is because that hasn't been fixed yet.
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// This package uses the Function type, and it will take effort to fix.
|
||||
"forbidden-types": false
|
||||
"ban-types": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
2
types/algebra.js/index.d.ts
vendored
2
types/algebra.js/index.d.ts
vendored
@ -16,7 +16,7 @@ declare class Variable {
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
declare type Union = string | number | algebra.js.Fraction | Term;
|
||||
type Union = string | number | algebra.js.Fraction | Term;
|
||||
|
||||
declare namespace algebra.js {
|
||||
function parse(input: string): Equation | Expression;
|
||||
|
||||
2
types/csvtojson/index.d.ts
vendored
2
types/csvtojson/index.d.ts
vendored
@ -235,7 +235,7 @@ declare namespace csvtojson {
|
||||
* @param {Function} listener listener function
|
||||
* @return {this} returns this object for chaining
|
||||
*/
|
||||
// tslint:disable-next-line:forbidden-types
|
||||
// tslint:disable-next-line ban-types
|
||||
on(event: string, listener: Function | JsonEventHandler | CsvEventHandler | DataEventHandler | ErrorEventHandler
|
||||
| RecordParsedEventHandler | EndEventHandler | EndParsedEventHandler | DoneEventHandler): this;
|
||||
|
||||
|
||||
@ -1,13 +1,4 @@
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
"extends": "../tslint.json",
|
||||
"rules": {
|
||||
"comment-format": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-padding": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
=======
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"comment-format": false,
|
||||
@ -15,5 +6,4 @@
|
||||
"no-padding": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
>>>>>>> master
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../tslint.json",
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"array-type": [false, "array"],
|
||||
"quotemark": [false, "double"],
|
||||
@ -7,9 +7,10 @@
|
||||
"space-before-function-paren": [false, "always"],
|
||||
"max-line-length": [false, 200],
|
||||
"no-empty-interface": false,
|
||||
"no-redundant-modifiers": false,
|
||||
"no-reference-import": false,
|
||||
"only-arrow-functions": [false],
|
||||
"prefer-for-of": false,
|
||||
"strict-export-declare-modifiers": false,
|
||||
"unified-signatures": false,
|
||||
"whitespace": [
|
||||
false,
|
||||
|
||||
2
types/react-ga/index.d.ts
vendored
2
types/react-ga/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for react-ga 2.1.2
|
||||
// Type definitions for react-ga 2.1
|
||||
// Project: https://github.com/react-ga/react-ga
|
||||
// Definitions by: Tim Aldridge <https://github.com/telshin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@ -4709,7 +4709,6 @@ export interface SystraceStatic {
|
||||
*/
|
||||
measureMethods(object: any, objectName: string, methodNames: Array<string>): void
|
||||
|
||||
// tslint:disable:forbidden-types
|
||||
/**
|
||||
* Returns an profiled version of the input function. For example, you can:
|
||||
* JSON.parse = Systrace.measure('JSON', 'parse', JSON.parse);
|
||||
@ -4720,7 +4719,6 @@ export interface SystraceStatic {
|
||||
* @return {function} replacement function
|
||||
*/
|
||||
measure<T extends Function>(objName: string, fnName: string, func: T): T
|
||||
// tslint:enable:forbidden-types
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
8
types/react-router-redux/v4/index.d.ts
vendored
8
types/react-router-redux/v4/index.d.ts
vendored
@ -23,9 +23,9 @@ export interface RouterAction extends Action {
|
||||
payload?: LocationActionPayload;
|
||||
}
|
||||
|
||||
type LocationAction = (nextLocation: LocationDescriptor) => RouterAction;
|
||||
type GoAction = (n: number) => RouterAction;
|
||||
type NavigateAction = () => RouterAction;
|
||||
export type LocationAction = (nextLocation: LocationDescriptor) => RouterAction;
|
||||
export type GoAction = (n: number) => RouterAction;
|
||||
export type NavigateAction = () => RouterAction;
|
||||
|
||||
export const push: LocationAction;
|
||||
export const replace: LocationAction;
|
||||
@ -33,7 +33,7 @@ export const go: GoAction;
|
||||
export const goBack: NavigateAction;
|
||||
export const goForward: NavigateAction;
|
||||
|
||||
interface RouteActions {
|
||||
export interface RouteActions {
|
||||
push: typeof push;
|
||||
replace: typeof replace;
|
||||
go: typeof go;
|
||||
|
||||
@ -1,6 +1 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"forbidden-types": false
|
||||
}
|
||||
}
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
|
||||
6
types/react-router/v3/lib/match.d.ts
vendored
6
types/react-router/v3/lib/match.d.ts
vendored
@ -1,19 +1,19 @@
|
||||
import { Basename, History, LocationDescriptor } from "history";
|
||||
import { ParseQueryString, RouteConfig, StringifyQuery } from "react-router";
|
||||
|
||||
interface MatchArgs {
|
||||
export interface MatchArgs {
|
||||
routes: RouteConfig;
|
||||
basename?: Basename;
|
||||
parseQueryString?: ParseQueryString;
|
||||
stringifyQuery?: StringifyQuery;
|
||||
}
|
||||
|
||||
interface MatchLocationArgs extends MatchArgs {
|
||||
export interface MatchLocationArgs extends MatchArgs {
|
||||
location: LocationDescriptor;
|
||||
history?: History;
|
||||
}
|
||||
|
||||
interface MatchHistoryArgs extends MatchArgs {
|
||||
export interface MatchHistoryArgs extends MatchArgs {
|
||||
location?: LocationDescriptor;
|
||||
history: History;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user