Skip to content

Commit

Permalink
chore: delete flow types from the repo (#8061)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Mar 14, 2019
1 parent 50300ab commit bdeb5af
Show file tree
Hide file tree
Showing 47 changed files with 31 additions and 3,294 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run: echo server.max_workers=1 >> .flowconfig
- run: yarn lint --format junit -o reports/junit/js-lint-results.xml && yarn typecheck && yarn lint-es5-build --format junit -o reports/junit/js-es5-lint-results.xml && yarn lint:md:ci && yarn check-copyright-headers
- run: yarn lint --format junit -o reports/junit/js-lint-results.xml && yarn lint-es5-build --format junit -o reports/junit/js-es5-lint-results.xml && yarn lint:md:ci && yarn check-copyright-headers
- store_test_results:
path: reports/junit

Expand Down
29 changes: 1 addition & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

const customImportResolver = require.resolve('./eslintImportResolver');

module.exports = {
extends: [
'./packages/eslint-config-fb-strict/index.js',
Expand Down Expand Up @@ -66,31 +64,11 @@ module.exports = {
},
},
{
files: ['types/**/*', 'packages/jest-types/**/*'],
files: ['packages/jest-types/**/*'],
rules: {
'import/no-extraneous-dependencies': 0,
},
},
{
files: [
'e2e/__tests__/**/*.js',
'packages/babel-jest/**/*.test.js',
'packages/babel-plugin-jest-hoist/**/*.test.js',
'packages/babel-preset-jest/**/*.test.js',
'packages/eslint-config-fb-strict/**/*.test.js',
'packages/eslint-plugin-jest/**/*.test.js',
'packages/jest-changed-files/**/*.test.js',
'packages/jest-circus/**/*.test.js',
'packages/jest-diff/**/*.test.js',
'packages/jest-docblock/**/*.test.js',
'packages/jest-editor-support/**/*.test.js',
'packages/jest/**/*.test.js',
'packages/pretty-format/**/*.test.js',
],
rules: {
'flowtype/require-valid-file-annotation': [2, 'always'],
},
},
{
files: [
'website/**',
Expand Down Expand Up @@ -133,11 +111,6 @@ module.exports = {
},
settings: {
'import/resolver': {
[customImportResolver]: {
moduleNameMapper: {
'^types/(.*)': './types/$1',
},
},
'eslint-import-resolver-typescript': true,
},
},
Expand Down
23 changes: 0 additions & 23 deletions .flowconfig

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Chore & Maintenance

- `[*]` Remove flow from code base ([#8061](https://github.com/facebook/jest/pull/8061))

### Performance

## 24.5.0
Expand Down
82 changes: 0 additions & 82 deletions eslintImportResolver.js

This file was deleted.

12 changes: 0 additions & 12 deletions flow-typed/co.js

This file was deleted.

32 changes: 0 additions & 32 deletions flow-typed/console.js

This file was deleted.

167 changes: 0 additions & 167 deletions flow-typed/graceful-fs.js

This file was deleted.

Loading

0 comments on commit bdeb5af

Please sign in to comment.