Skip to content

Commit 1d6cde5

Browse files
Josh GoldbergAndarist
Josh Goldberg
andauthored
Removed Flow (and its tooling) from the source code (#2385)
* Removed Flow * Update packages/jest/src/utils.js Co-authored-by: Mateusz Burzyński <[email protected]> * Update packages/react/src/theming.js Co-authored-by: Mateusz Burzyński <[email protected]> * Update site/src/utils/markdown-styles.js Co-authored-by: Mateusz Burzyński <[email protected]> * Fix markdown-styles.js * Title.js * One more formatting, and a FlowFixMe removal * Updated a few snapshots, and yarn.lock Co-authored-by: Mateusz Burzyński <[email protected]>
1 parent 3a8eaac commit 1d6cde5

File tree

222 files changed

+927
-2771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+927
-2771
lines changed

.eslintignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ coverage/
44
node_modules/
55
stylis.min.js
66
/demo/dist
7-
/packages/site/build
8-
flow-typed/
7+
/packages/site/build

.flowconfig

-24
This file was deleted.

.flowconfig-ci

-27
This file was deleted.

.github/workflows/main.yml

-31
Original file line numberDiff line numberDiff line change
@@ -50,37 +50,6 @@ jobs:
5050
uses: codecov/codecov-action@v1
5151
if: ${{ matrix.platform == 'ubuntu-latest' && always() }}
5252

53-
flow:
54-
name: Flow
55-
runs-on: ubuntu-latest
56-
steps:
57-
- uses: actions/checkout@main
58-
59-
- name: Set Node.js 12.x
60-
uses: actions/setup-node@main
61-
with:
62-
node-version: 12.x
63-
64-
- name: Get yarn cache directory path
65-
id: yarn-cache-dir-path
66-
run: echo "::set-output name=dir::$(yarn cache dir)"
67-
68-
- uses: actions/cache@v2
69-
id: yarn-cache
70-
with:
71-
path: |
72-
${{ steps.yarn-cache-dir-path.outputs.dir }}
73-
node_modules
74-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
75-
restore-keys: |
76-
${{ runner.os }}-yarn-
77-
78-
- name: Install Dependencies
79-
run: yarn
80-
81-
- name: Check Types
82-
run: yarn flow:check
83-
8453
test_dist:
8554
name: Test Dist
8655
runs-on: ubuntu-latest

.prettierrc.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ overrides:
44
- files: "docs/*.md"
55
options:
66
printWidth: 60
7-
- files: "*.js"
8-
options:
9-
parser: flow

__mocks__/react-native.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @flow
21
/* eslint-env jest */
32

43
let components = [

__mocks__/react-primitives.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// @flow
21
export * from 'react-primitives/lib/index.web'

docs/docs.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
- source-maps
3030
- testing
3131
- typescript
32-
- flow
3332

3433
# This loads the READMEs instead of files in docs/
3534
- title: Packages

docs/flow.mdx

-115
This file was deleted.

flow-typed/npm/gatsby_vx.x.x.js

-20
This file was deleted.

flow-typed/npm/jest-glamor-react_vx.x.x.js

-24
This file was deleted.

0 commit comments

Comments
 (0)