This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The initial stages of Flow in here were woefully incomplete. This brings things to a state where flow is at least checking a majority of the main file and has basic definitions of the used modules.
- Loading branch information
1 parent
2423ed9
commit f83a46a
Showing
10 changed files
with
97 additions
and
11 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
[include] | ||
|
||
[libs] | ||
decls | ||
|
||
[options] | ||
module.system=node | ||
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore |
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,10 +1,13 @@ | ||
test: | ||
dependencies: | ||
override: | ||
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh | ||
- chmod u+x build-package.sh | ||
- ./build-package.sh | ||
|
||
dependencies: | ||
test: | ||
override: | ||
# If nothing is put here, CircleCI will run `npm install` using the system Node.js | ||
- echo "Managed in the script" | ||
- ./build-package.sh | ||
- npm run lint | ||
|
||
machine: | ||
node: | ||
version: 6.3.0 |
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,6 @@ | ||
module.exports = { | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'no-undef': 'off' | ||
} | ||
} |
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,29 @@ | ||
// @flow | ||
|
||
/* eslint-disable import/extensions, import/no-extraneous-dependencies */ | ||
import type { TextEditor } from 'atom'; | ||
/* eslint-enable import/extensions, import/no-extraneous-dependencies */ | ||
|
||
declare type ExecOptions = { | ||
timeout?: number, | ||
stream?: 'stdout' | 'stderr' | 'both', | ||
env?: Object, | ||
stdin?: string | Buffer, | ||
local?: { | ||
directory: string, | ||
prepend?: boolean | ||
}, | ||
throwOnStderr?: boolean, | ||
allowEmptyStderr?: boolean, | ||
ignoreExitCode?: boolean | ||
} | ||
|
||
declare module 'atom-linter' { | ||
declare var findCachedAsync: | ||
(directory: string, names: string | Array<string>) => Promise<?string>; | ||
declare var execNode: | ||
(filePath: string, args: Array<string>, options: ExecOptions) => Promise<string>; | ||
declare var generateRange: | ||
(textEditor: TextEditor, lineNumber?: number, colStart?: number) => | ||
Array<Array<number>> | ||
} |
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,5 @@ | ||
// @flow | ||
|
||
declare module 'atom-package-deps' { | ||
declare var install: (name: string) => 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// @flow | ||
|
||
declare var atom: Object; | ||
|
||
declare class Disposable { | ||
dispose(): void; | ||
} | ||
|
||
declare module 'atom' { | ||
declare class CompositeDisposable { | ||
add(...observable: Array<Disposable>): void; | ||
} | ||
|
||
declare type Buffer = { | ||
getLineCount: () => number, | ||
lineLengthForRow: () => number, | ||
} | ||
|
||
declare type TextEditor = { | ||
getPath: () => string, | ||
getText: () => string, | ||
getGrammar: () => { | ||
scopeName: string | ||
}, | ||
getBuffer: () => Buffer, | ||
// setCursorBufferPosition: (point: Point) => void, | ||
// scrollToCursorPosition: () => void, | ||
// onDidStopChanging: (cb: () => void) => any | ||
} | ||
} |
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,5 @@ | ||
// @flow | ||
|
||
declare module 'jshint-json' { | ||
declare module.exports: string; | ||
} |
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