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

Cleanup from Flow and Babel #676

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .babelrc.json

This file was deleted.

64 changes: 3 additions & 61 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
parser: babel-eslint
parserOptions:
sourceType: module
sourceType: script
ecmaVersion: 2020
env:
es6: true
node: true
reportUnusedDisableDirectives: true
plugins:
- internal-rules
- flowtype
- node
- istanbul
- import
settings:
flowtype:
onlyFilesWithFlowAnnotation: true
node:
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']

Expand All @@ -25,54 +22,6 @@ rules:

internal-rules/no-dir-import: error

##############################################################################
# `eslint-plugin-flowtype` rule list based on `v5.2.x`
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
##############################################################################

flowtype/array-style-complex-type: error
flowtype/array-style-simple-type: error
flowtype/define-flow-type: error
flowtype/newline-after-flow-annotation: error
flowtype/no-dupe-keys: error
flowtype/no-existential-type: off # checked by Flow
flowtype/no-flow-fix-me-comments: error
flowtype/no-mixed: off
flowtype/no-mutable-array: off
flowtype/no-primitive-constructor-types: error
flowtype/no-types-missing-file-annotation: error
flowtype/no-unused-expressions: off
flowtype/no-weak-types: [error, { any: false }]
flowtype/require-compound-type-alias: off
flowtype/require-exact-type: error
flowtype/require-indexer-name: error
flowtype/require-inexact-type: off # checked by Flow
flowtype/require-parameter-type: off
flowtype/require-readonly-react-props: off
flowtype/require-return-type: off
flowtype/require-types-at-top: off
flowtype/require-valid-file-annotation:
[error, always, { annotationStyle: line, strict: true }]
flowtype/require-variable-type: off
flowtype/sort-keys: off
flowtype/spread-exact-type: off
flowtype/type-id-match: [error, '^[A-Z]|^\$']
flowtype/type-import-style: [error, declaration]
flowtype/use-flow-type: error

# Bellow rules are disabled because coflicts with Prettier, see:
# https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
flowtype/arrow-parens: off
flowtype/boolean-style: off
flowtype/delimiter-dangle: off
flowtype/generic-spacing: off
flowtype/object-type-delimiter: off
flowtype/semi: off
flowtype/space-after-type-colon: off
flowtype/space-before-generic-bracket: off
flowtype/space-before-type-colon: off
flowtype/union-intersection-spacing: off

##############################################################################
# `eslint-plugin-istanbul` rule list based on `v0.1.2`
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
Expand Down Expand Up @@ -488,14 +437,13 @@ overrides:
- files: '**/*.ts'
parser: '@typescript-eslint/parser'
parserOptions:
sourceType: module
project: ['tsconfig.json']
plugins:
- '@typescript-eslint'
extends:
- plugin:import/typescript
rules:
flowtype/no-types-missing-file-annotation: off

##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
##########################################################################
Expand Down Expand Up @@ -639,8 +587,6 @@ overrides:
import/no-extraneous-dependencies: [error, { devDependencies: true }]
import/no-nodejs-modules: off
- files: 'integrationTests/**'
parserOptions:
sourceType: script
rules:
node/no-unpublished-import: off
node/no-unpublished-require: off
Expand All @@ -649,8 +595,6 @@ overrides:
import/no-nodejs-modules: off
no-console: off
- files: 'resources/**'
parserOptions:
sourceType: script
rules:
node/no-unpublished-import: off
node/no-unpublished-require: off
Expand All @@ -664,8 +608,6 @@ overrides:
no-await-in-loop: off
no-console: off
- files: 'examples/**'
parserOptions:
sourceType: module
rules:
internal-rules/no-dir-import: off
node/no-unpublished-import: off
Expand Down
62 changes: 0 additions & 62 deletions .flowconfig

This file was deleted.

2 changes: 0 additions & 2 deletions integrationTests/integration-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @noflow

'use strict';

const os = require('os');
Expand Down
2 changes: 0 additions & 2 deletions integrationTests/ts/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @noflow

'use strict';

const path = require('path');
Expand Down
Loading