Skip to content

Commit 94c047f

Browse files
Enable verbatimModuleSyntax in tsconfig (#759)
* Enbale verbatimModuleSyntax This includes enabling the `@typescript-eslint/no-import-type-side-effects` rule and running the auto-fix to move all possible type imports to the top level, so that verbatimModuleSyntax can work as intended. * Remove unused packageExtensions * Increase MongoDB version for CI testing * Use different version specifier in MongoDB action
1 parent 89caeb2 commit 94c047f

File tree

205 files changed

+595
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+595
-616
lines changed

.github/workflows/cypress_debug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
working-directory: packages/jbrowse-plugin-apollo
2424

2525
- name: Start MongoDB
26-
uses: supercharge/mongodb-github-action@1.10.0
26+
uses: supercharge/mongodb-github-action@1.12.1
2727
with:
28-
mongodb-version: 7
28+
mongodb-version: 8
2929
mongodb-replica-set: test-rs
3030

3131
- name: Start local file server

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
run: yarn run jbrowse create --nightly .jbrowse
4646
working-directory: packages/jbrowse-plugin-apollo
4747
- name: Start MongoDB
48-
uses: supercharge/mongodb-github-action@1.10.0
48+
uses: supercharge/mongodb-github-action@1.12.1
4949
with:
50-
mongodb-version: 7
50+
mongodb-version: 8
5151
mongodb-replica-set: test-rs
5252
- name: Start local file server
5353
run:

.yarnrc.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ enableGlobalCache: false
55
npmMinimalAgeGate: 2880
66

77
packageExtensions:
8-
"@jbrowse/cli@*":
9-
dependencies:
10-
tmp: ^0.2.1
118
"@jbrowse/core@*":
129
peerDependencies:
1310
"@emotion/react": "*"
@@ -30,10 +27,6 @@ packageExtensions:
3027
mobx-react@*:
3128
peerDependencies:
3229
react-dom: "*"
33-
mocha@*:
34-
dependencies:
35-
source-map-support: "*"
36-
ts-node: "*"
3730
mongoose-id-validator@*:
3831
peerDependencies:
3932
mongoose: "*"

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ export default [
6767
radix: 'error',
6868
// @typescript-eslint/eslint-plugin rules (override recommended)
6969
'@typescript-eslint/consistent-type-imports': [
70-
'warn',
70+
'error',
7171
{ fixStyle: 'inline-type-imports' },
7272
],
7373
'@typescript-eslint/no-extraneous-class': [
7474
'error',
7575
{ allowWithDecorator: true },
7676
],
77+
'@typescript-eslint/no-import-type-side-effects': 'error',
7778
'@typescript-eslint/no-unused-vars': [
7879
'warn',
7980
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
@@ -84,7 +85,6 @@ export default [
8485
],
8586
'@typescript-eslint/return-await': 'error',
8687
// eslint-plugin-import rules
87-
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
8888
'import/export': 'error',
8989
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
9090
'import/no-extraneous-dependencies': 'error',

packages/apollo-cli/src/commands/assembly/add-from-fasta.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
import * as fs from 'node:fs'
33
import path from 'node:path'
44

5-
import {
6-
type SerializedAddAssemblyFromExternalChange,
7-
type SerializedAddAssemblyFromFileChange,
5+
import type {
6+
SerializedAddAssemblyFromExternalChange,
7+
SerializedAddAssemblyFromFileChange,
88
} from '@apollo-annotation/shared'
99
import { Args, Flags } from '@oclif/core'
1010
import { ObjectId } from 'bson'
11-
import { type Response } from 'undici'
11+
import type { Response } from 'undici'
1212

1313
import { FileCommand } from '../../fileCommand.js'
1414
import { queryApollo, submitAssembly } from '../../utils.js'

packages/apollo-cli/src/commands/assembly/add-from-gff.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as fs from 'node:fs'
22
import path from 'node:path'
33

4-
import {
5-
type SerializedAddAssemblyAndFeaturesFromFileChange,
6-
type SerializedAddAssemblyFromExternalChange,
7-
type SerializedAddAssemblyFromFileChange,
4+
import type {
5+
SerializedAddAssemblyAndFeaturesFromFileChange,
6+
SerializedAddAssemblyFromExternalChange,
7+
SerializedAddAssemblyFromFileChange,
88
} from '@apollo-annotation/shared'
99
import { Args, Flags } from '@oclif/core'
1010
import { ObjectId } from 'bson'

packages/apollo-cli/src/commands/assembly/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Flags } from '@oclif/core'
2-
import { type Response } from 'undici'
2+
import type { Response } from 'undici'
33

44
import { BaseCommand } from '../../baseCommand.js'
55
import { convertAssemblyNameToId, idReader, queryApollo } from '../../utils.js'

packages/apollo-cli/src/commands/assembly/sequence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-unsafe-argument */
22

3-
import { type ApolloRefSeqSnapshot } from '@apollo-annotation/mst'
3+
import type { ApolloRefSeqSnapshot } from '@apollo-annotation/mst'
44
import { Flags } from '@oclif/core'
55
import { Agent, type RequestInit, type Response, fetch } from 'undici'
66

packages/apollo-cli/src/commands/change/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Flags } from '@oclif/core'
2-
import { type Response } from 'undici'
2+
import type { Response } from 'undici'
33

44
import { BaseCommand } from '../../baseCommand.js'
55
import { convertAssemblyNameToId, idReader, queryApollo } from '../../utils.js'

packages/apollo-cli/src/commands/feature/add-child.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-unsafe-argument */
22
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
3-
import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
4-
import { type SerializedAddFeatureChange } from '@apollo-annotation/shared'
3+
import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
4+
import type { SerializedAddFeatureChange } from '@apollo-annotation/shared'
55
import { Flags } from '@oclif/core'
66
import { ObjectId } from 'bson'
77
import { type Response, fetch } from 'undici'

0 commit comments

Comments
 (0)