-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Upgrade production dependencies + babel and eslint (#197)
* Upgrade production dependencies * Fix flow problems * Make dev dependencies non-exact * Upgrade all of babel * Upgrade eslint-based dependencies * Run eslint autofix * Fix remaining lint issues manually
- Loading branch information
Showing
54 changed files
with
851 additions
and
692 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[ignore] | ||
.*/node_modules/fbjs/.* | ||
.*/node_modules/yargs/.* | ||
.*/dist/.* | ||
.*/__tests__/fixtures/.* | ||
|
||
|
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
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
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,4 +1,4 @@ | ||
#!/usr/bin/env node | ||
const path = require('path'); | ||
|
||
require(path.join(__dirname, '../dist/lib/cli')).run(); // eslint-disable-line import/no-dynamic-require | ||
require(path.join(__dirname, '../dist/lib/cli')).run(); |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// flow-typed signature: 257135a98dbce29a68026e7b9b7f381d | ||
// flow-typed version: c6154227d1/glob_v7.1.x/flow_>=v0.42.x <=v0.103.x | ||
|
||
declare module "glob" { | ||
declare type MinimatchOptions = {| | ||
debug?: boolean, | ||
nobrace?: boolean, | ||
noglobstar?: boolean, | ||
dot?: boolean, | ||
noext?: boolean, | ||
nocase?: boolean, | ||
nonull?: boolean, | ||
matchBase?: boolean, | ||
nocomment?: boolean, | ||
nonegate?: boolean, | ||
flipNegate?: boolean | ||
|}; | ||
|
||
declare type Options = {| | ||
...MinimatchOptions, | ||
cwd?: string, | ||
root?: string, | ||
nomount?: boolean, | ||
mark?: boolean, | ||
nosort?: boolean, | ||
stat?: boolean, | ||
silent?: boolean, | ||
strict?: boolean, | ||
cache?: { | ||
[path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray<string> | ||
}, | ||
statCache?: { | ||
[path: string]: boolean | { isDirectory(): boolean } | void | ||
}, | ||
symlinks?: { [path: string]: boolean | void }, | ||
realpathCache?: { [path: string]: string }, | ||
sync?: boolean, | ||
nounique?: boolean, | ||
nodir?: boolean, | ||
ignore?: string | $ReadOnlyArray<string>, | ||
follow?: boolean, | ||
realpath?: boolean, | ||
absolute?: boolean | ||
|}; | ||
|
||
/** | ||
* Called when an error occurs, or matches are found | ||
* err | ||
* matches: filenames found matching the pattern | ||
*/ | ||
declare type CallBack = (err: ?Error, matches: Array<string>) => void; | ||
|
||
declare class Glob extends events$EventEmitter { | ||
constructor(pattern: string): this; | ||
constructor(pattern: string, callback: CallBack): this; | ||
constructor(pattern: string, options: Options, callback: CallBack): this; | ||
|
||
minimatch: {}; | ||
options: Options; | ||
aborted: boolean; | ||
cache: { | ||
[path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray<string> | ||
}; | ||
statCache: { | ||
[path: string]: boolean | { isDirectory(): boolean } | void | ||
}; | ||
symlinks: { [path: string]: boolean | void }; | ||
realpathCache: { [path: string]: string }; | ||
found: Array<string>; | ||
|
||
pause(): void; | ||
resume(): void; | ||
abort(): void; | ||
} | ||
|
||
declare class GlobModule { | ||
Glob: Class<Glob>; | ||
|
||
(pattern: string, callback: CallBack): void; | ||
(pattern: string, options: Options, callback: CallBack): void; | ||
|
||
hasMagic(pattern: string, options?: Options): boolean; | ||
sync(pattern: string, options?: Options): Array<string>; | ||
} | ||
|
||
declare module.exports: GlobModule; | ||
} |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.