Skip to content

Commit

Permalink
remove flow
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed May 15, 2021
1 parent bbf7ac3 commit b388357
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 74 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
/npm
/deno

# Ignore Flow typings for 3rd-party libraries
/flow-typed
# Ignore TS files inside integration test
/integrationTests/ts/*.ts
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ensure your pull request matches the style guides, run `npm run prettier`.
- 80 character line length strongly preferred.
- Prefer `'` over `"`
- ES6 syntax when possible. However do not rely on ES6-specific functions to be available.
- Use [Flow types](https://flowtype.org/).
- Use [TypeScript](https://www.typescriptlang.org).
- Use semicolons;
- Trailing commas,
- Avd abbr wrds.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Lint ESLint
run: npm run lint

- name: Check Types
- name: Check Types
run: npm run check

- name: Lint Prettier
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/flow-typed

# Copied from '.gitignore', please keep it in sync.
/.eslintcache
/node_modules
Expand Down
1 change: 0 additions & 1 deletion cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ words:
- graphiql
- sublinks
- instanceof
- flowtype

# Different names used inside tests
- Skywalker
Expand Down
61 changes: 0 additions & 61 deletions resources/check-cycles.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/jsutils/__tests__/toObjMap-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
import type { ObjMapLike } from '../ObjMap';
import { toObjMap } from '../toObjMap';

// Workaround to make both ESLint and Flow happy
// Workaround to make both ESLint happy
const __proto__: string = '__proto__';

describe('toObjMap', () => {
Expand Down
6 changes: 1 addition & 5 deletions src/subscription/__tests__/mapAsyncIterator-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ describe('mapAsyncIterator', () => {
yield 3;
}

// Flow test: this is *not* AsyncIterator<Promise<number>>
const doubles: AsyncIterator<number> = mapAsyncIterator(
source(),
async (x) => (await x) + x,
);
const doubles = mapAsyncIterator(source(), async (x) => (await x) + x);

expect(await doubles.next()).to.deep.equal({ value: 2, done: false });
expect(await doubles.next()).to.deep.equal({ value: 4, done: false });
Expand Down

0 comments on commit b388357

Please sign in to comment.