Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 7b9e5ec

Browse files
Cleanup from Flow and Babel (#676)
1 parent 34ef31d commit 7b9e5ec

File tree

14 files changed

+79
-2123
lines changed

14 files changed

+79
-2123
lines changed

.babelrc.json

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

.eslintrc.yml

Lines changed: 3 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
parser: babel-eslint
21
parserOptions:
3-
sourceType: module
2+
sourceType: script
3+
ecmaVersion: 2020
44
env:
55
es6: true
66
node: true
77
reportUnusedDisableDirectives: true
88
plugins:
99
- internal-rules
10-
- flowtype
1110
- node
1211
- istanbul
1312
- import
1413
settings:
15-
flowtype:
16-
onlyFilesWithFlowAnnotation: true
1714
node:
1815
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']
1916

@@ -25,54 +22,6 @@ rules:
2522

2623
internal-rules/no-dir-import: error
2724

28-
##############################################################################
29-
# `eslint-plugin-flowtype` rule list based on `v5.2.x`
30-
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
31-
##############################################################################
32-
33-
flowtype/array-style-complex-type: error
34-
flowtype/array-style-simple-type: error
35-
flowtype/define-flow-type: error
36-
flowtype/newline-after-flow-annotation: error
37-
flowtype/no-dupe-keys: error
38-
flowtype/no-existential-type: off # checked by Flow
39-
flowtype/no-flow-fix-me-comments: error
40-
flowtype/no-mixed: off
41-
flowtype/no-mutable-array: off
42-
flowtype/no-primitive-constructor-types: error
43-
flowtype/no-types-missing-file-annotation: error
44-
flowtype/no-unused-expressions: off
45-
flowtype/no-weak-types: [error, { any: false }]
46-
flowtype/require-compound-type-alias: off
47-
flowtype/require-exact-type: error
48-
flowtype/require-indexer-name: error
49-
flowtype/require-inexact-type: off # checked by Flow
50-
flowtype/require-parameter-type: off
51-
flowtype/require-readonly-react-props: off
52-
flowtype/require-return-type: off
53-
flowtype/require-types-at-top: off
54-
flowtype/require-valid-file-annotation:
55-
[error, always, { annotationStyle: line, strict: true }]
56-
flowtype/require-variable-type: off
57-
flowtype/sort-keys: off
58-
flowtype/spread-exact-type: off
59-
flowtype/type-id-match: [error, '^[A-Z]|^\$']
60-
flowtype/type-import-style: [error, declaration]
61-
flowtype/use-flow-type: error
62-
63-
# Bellow rules are disabled because coflicts with Prettier, see:
64-
# https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
65-
flowtype/arrow-parens: off
66-
flowtype/boolean-style: off
67-
flowtype/delimiter-dangle: off
68-
flowtype/generic-spacing: off
69-
flowtype/object-type-delimiter: off
70-
flowtype/semi: off
71-
flowtype/space-after-type-colon: off
72-
flowtype/space-before-generic-bracket: off
73-
flowtype/space-before-type-colon: off
74-
flowtype/union-intersection-spacing: off
75-
7625
##############################################################################
7726
# `eslint-plugin-istanbul` rule list based on `v0.1.2`
7827
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
@@ -488,14 +437,13 @@ overrides:
488437
- files: '**/*.ts'
489438
parser: '@typescript-eslint/parser'
490439
parserOptions:
440+
sourceType: module
491441
project: ['tsconfig.json']
492442
plugins:
493443
- '@typescript-eslint'
494444
extends:
495445
- plugin:import/typescript
496446
rules:
497-
flowtype/no-types-missing-file-annotation: off
498-
499447
##########################################################################
500448
# `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
501449
##########################################################################
@@ -639,8 +587,6 @@ overrides:
639587
import/no-extraneous-dependencies: [error, { devDependencies: true }]
640588
import/no-nodejs-modules: off
641589
- files: 'integrationTests/**'
642-
parserOptions:
643-
sourceType: script
644590
rules:
645591
node/no-unpublished-import: off
646592
node/no-unpublished-require: off
@@ -649,8 +595,6 @@ overrides:
649595
import/no-nodejs-modules: off
650596
no-console: off
651597
- files: 'resources/**'
652-
parserOptions:
653-
sourceType: script
654598
rules:
655599
node/no-unpublished-import: off
656600
node/no-unpublished-require: off
@@ -664,8 +608,6 @@ overrides:
664608
no-await-in-loop: off
665609
no-console: off
666610
- files: 'examples/**'
667-
parserOptions:
668-
sourceType: module
669611
rules:
670612
internal-rules/no-dir-import: off
671613
node/no-unpublished-import: off

.flowconfig

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

integrationTests/integration-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// @noflow
2-
31
'use strict';
42

53
const os = require('os');

integrationTests/ts/test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// @noflow
2-
31
'use strict';
42

53
const path = require('path');

0 commit comments

Comments
 (0)