Skip to content

Commit bc18f0c

Browse files
committed
build: remove flow infra
1 parent af8ff82 commit bc18f0c

File tree

13 files changed

+3
-3590
lines changed

13 files changed

+3
-3590
lines changed

.eslintrc.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -436,64 +436,6 @@ rules:
436436
yield-star-spacing: off
437437

438438
overrides:
439-
- files: 'src/**/*.js'
440-
parser: '@babel/eslint-parser'
441-
parserOptions:
442-
sourceType: module
443-
plugins:
444-
- flowtype
445-
446-
rules:
447-
##############################################################################
448-
# `eslint-plugin-flowtype` rule list based on `v5.7.x`
449-
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
450-
##############################################################################
451-
452-
flowtype/array-style-complex-type: error
453-
flowtype/array-style-simple-type: error
454-
flowtype/define-flow-type: error
455-
flowtype/newline-after-flow-annotation: error
456-
flowtype/no-dupe-keys: error
457-
flowtype/no-existential-type: off # checked by Flow
458-
flowtype/no-flow-fix-me-comments: off
459-
flowtype/no-internal-flow-type: error
460-
flowtype/no-mixed: off
461-
flowtype/no-mutable-array: off
462-
flowtype/no-primitive-constructor-types: error
463-
flowtype/no-types-missing-file-annotation: off
464-
flowtype/no-unused-expressions: off
465-
flowtype/no-weak-types: [error, { any: false }]
466-
flowtype/require-compound-type-alias: off
467-
flowtype/require-exact-type: [error, never]
468-
flowtype/require-indexer-name: error
469-
flowtype/require-inexact-type: off # checked by Flow
470-
flowtype/require-parameter-type: off
471-
flowtype/require-readonly-react-props: off
472-
flowtype/require-return-type: off
473-
flowtype/require-types-at-top: off
474-
flowtype/require-valid-file-annotation: off
475-
flowtype/require-variable-type: off
476-
flowtype/sort-keys: off
477-
flowtype/spread-exact-type: off
478-
flowtype/type-id-match: [error, '^[A-Z]']
479-
flowtype/type-import-style: [error, declaration]
480-
flowtype/use-read-only-spread: error
481-
flowtype/use-flow-type: error
482-
483-
# Bellow rules are disabled because coflicts with Prettier, see:
484-
# https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
485-
flowtype/arrow-parens: off
486-
flowtype/boolean-style: off
487-
flowtype/delimiter-dangle: off
488-
flowtype/generic-spacing: off
489-
flowtype/object-type-curly-spacing: off
490-
flowtype/object-type-delimiter: off
491-
flowtype/quotes: off
492-
flowtype/semi: off
493-
flowtype/space-after-type-colon: off
494-
flowtype/space-before-generic-bracket: off
495-
flowtype/space-before-type-colon: off
496-
flowtype/union-intersection-spacing: off
497439
- files: '**/*.ts'
498440
parser: '@typescript-eslint/parser'
499441
parserOptions:
@@ -641,7 +583,7 @@ overrides:
641583
'@typescript-eslint/require-await': error
642584
'@typescript-eslint/return-await': error
643585

644-
# Disable for JS, Flow and TS
586+
# Disable for JS and TS
645587
'@typescript-eslint/init-declarations': off
646588
'@typescript-eslint/no-magic-numbers': off
647589
'@typescript-eslint/no-use-before-define': off

.flowconfig

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Lint ESLint
3030
run: npm run lint
3131

32-
- name: Lint Flow
32+
- name: Check Types
3333
run: npm run check
3434

3535
- name: Lint Prettier

0 commit comments

Comments
 (0)