Skip to content

Commit

Permalink
chore: enable prettier/prettier rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jun 13, 2024
1 parent b8cfb1a commit bc84dc9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ export default defineConfig([
},
{ ignores: ['dist'] },
eslintPluginPrettierRecommended,

// TODO: Must-have rules. Enable one-by-one
{ rules: { 'prettier/prettier': 'off' } },
])

/** @param config {import('eslint').Linter.FlatConfig} */
Expand Down
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface TinypoolWorker {
* these messages and ignore them.
*/
export interface TinypoolWorkerMessage<
T extends 'port' | 'pool' = 'port' | 'pool'
T extends 'port' | 'pool' = 'port' | 'pool',
> {
__tinypool_worker_message__: true
source: T
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/process-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class ProcessWorker implements TinypoolWorker {
})
}

private send(message: Parameters<NonNullable<typeof process['send']>>[0]) {
private send(message: Parameters<NonNullable<(typeof process)['send']>>[0]) {
if (!this.isTerminating) {
this.process.send(message)
}
Expand Down

0 comments on commit bc84dc9

Please sign in to comment.