This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
102 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
/config/** | ||
/coverage/** | ||
/docs/** | ||
/interfaces/** | ||
/node_modules/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* @flow */ | ||
|
||
/* eslint-disable no-empty */ | ||
|
||
declare module 'autoprefixer' {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
/* @flow */ | ||
|
||
type DOM = { | ||
toArray: () => Array<Object>, | ||
html: () => string, | ||
children: () => DOM, | ||
each: (iteratee: (i: number, el: Object) => any) => DOM, | ||
find: (selector: string) => DOM, | ||
removeAttr: (attr: string) => void | ||
toArray(): Array<Object>; | ||
html(): string; | ||
children(): DOM; | ||
each(iteratee: (i: number, el: Object) => any): DOM; | ||
find(selector: string): DOM; | ||
removeAttr(attr: string): void; | ||
}; | ||
|
||
declare module 'cheerio' { | ||
declare function load(html: string): { | ||
(): DOM, | ||
root: () => DOM | ||
(): DOM; | ||
root(): DOM; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
/* @flow */ | ||
|
||
type ESLintMessage = {message: string, ruleId?: string, line: number, column: number, filePath: string}; | ||
type ESLintResult = {filePath: string, messages: Array<ESLintMessage>}; | ||
type ESLintMessage = { | ||
message: string; | ||
ruleId?: string; | ||
line: number; | ||
column: number; | ||
filePath: string; | ||
}; | ||
type ESLintResult = { | ||
filePath: string; | ||
messages: Array<ESLintMessage>; | ||
}; | ||
|
||
declare module 'eslint' { | ||
declare class CLIEngine { | ||
options: {rules: Object}; | ||
constructor(config: Object): void; | ||
executeOnFiles(files: Array<string>): {results: Array<ESLintResult>} | ||
executeOnFiles(files: Array<string>): {results: Array<ESLintResult>}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* @flow */ | ||
|
||
/* eslint-disable no-empty */ | ||
|
||
declare module 'node-sass-import-once' {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
/* @flow */ | ||
|
||
type PropTypesObject = { | ||
instanceOf: (obj: any) => void, | ||
arrayOf: (obj: any) => void, | ||
string: {isRequired: void}, | ||
any: {isRequired: void}, | ||
object: {isRequired: void}, | ||
bool: {isRequired: void}, | ||
array: {isRequired: void}, | ||
number: {isRequired: void}, | ||
func: {isRequired: void} | ||
}; | ||
|
||
declare module 'react' { | ||
declare function createElement(type: any, props: ?Object, ...children: Array<any>): void; | ||
declare var PropTypes: PropTypesObject; | ||
declare var PropTypes: { | ||
instanceOf(obj: any): void; | ||
arrayOf(obj: any): void; | ||
string: {isRequired: void}; | ||
any: {isRequired: void}; | ||
object: {isRequired: void}; | ||
bool: {isRequired: void}; | ||
array: {isRequired: void}; | ||
number: {isRequired: void}; | ||
func: {isRequired: void}; | ||
}; | ||
declare class Component {} | ||
} | ||
|
||
declare module 'react/lib/ReactWithAddons' { | ||
declare function createElement(type: any, props: ?Object, ...children: Array<any>): void; | ||
declare var PropTypes: PropTypesObject; | ||
declare class Component {} | ||
declare var addons: { | ||
shallowCompare: (component: any, props: Object, state: Object) => boolean | ||
}; | ||
declare module 'react/lib/shallowCompare' { | ||
declare function exports(component: any, props: Object, state: Object): boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/* @flow */ | ||
|
||
/* eslint-disable no-empty */ | ||
|
||
declare module 'sinon-chai' {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/* @flow */ | ||
|
||
declare module 'tiny-lr' { | ||
declare function exports(): {changed: (config: Object) => void, listen: (port: number) => void}; | ||
declare function exports(): { | ||
changed(config: Object): void; | ||
listen(port: number): void; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters