Skip to content

Commit f8d01fa

Browse files
authoredOct 24, 2023
Delete flow types (#1536)
* Delete flow types * Add changeset * Remove flow from github workflows * Fix prettier * Remove flowconfig
1 parent aff1856 commit f8d01fa

38 files changed

+14
-2401
lines changed
 

‎.changeset/purple-wolves-draw.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@compiled/react': minor
3+
'@compiled/jest': minor
4+
---
5+
6+
Remove Flow types as they are increasingly difficult to maintain

‎.eslintrc.js

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
module.exports = {
22
root: true,
3-
ignorePatterns: [
4-
'dist',
5-
'build',
6-
'flow-typed',
7-
'*.d.ts',
8-
'babel-cjs.js',
9-
'babel-esm.js',
10-
'storybook-static',
11-
],
3+
ignorePatterns: ['dist', 'build', '*.d.ts', 'babel-cjs.js', 'babel-esm.js', 'storybook-static'],
124
overrides: [
135
{
146
files: ['*.{js,jsx,ts,tsx}'],
@@ -96,14 +88,6 @@ module.exports = {
9688
],
9789
},
9890
},
99-
{
100-
files: ['*.js.flow'],
101-
extends: ['plugin:flowtype/recommended'],
102-
plugins: ['flowtype'],
103-
rules: {
104-
'flowtype/generic-spacing': 'off',
105-
},
106-
},
10791
{
10892
files: ['*.json'],
10993
plugins: ['json-files'],

‎.flowconfig

-29
This file was deleted.

‎.github/workflows/build.yml

-3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,3 @@ jobs:
5151

5252
- name: Build webpack extracted example
5353
run: yarn build:webpack:extract
54-
55-
- name: Compare committed flow types to generated
56-
run: yarn flow-types compare

‎.github/workflows/test.yml

-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ jobs:
6060
- name: Build source for remainder tests
6161
run: yarn build
6262

63-
- name: Run flow types validation
64-
run: yarn flow-types validate
65-
6663
- name: Run import test
6764
run: yarn test:imports
6865

0 commit comments

Comments
 (0)
Please sign in to comment.