Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions .changeset/early-numbers-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Typesafe error propagation in signal connection path
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import js from '@eslint/js';
import { configs, plugins, rules } from 'eslint-config-airbnb-extended';
import { rules as prettierConfigRules } from 'eslint-config-prettier';
import neverthrowMustUse from 'eslint-plugin-neverthrow-must-use';
import prettierPlugin from 'eslint-plugin-prettier';

const strictness = 'off';
Expand Down Expand Up @@ -31,6 +32,15 @@ const typescriptConfig = [
rules.typescript.typescriptEslintStrict,
];

const neverthrowConfig = [
{
name: 'neverthrow-must-use',
plugins: {
'neverthrow-must-use': neverthrowMustUse,
},
},
];

const prettierConfig = [
// Prettier Plugin
{
Expand All @@ -56,6 +66,7 @@ export default [
...typescriptConfig,
// Prettier Config
...prettierConfig,
...neverthrowConfig,
{
languageOptions: {
parserOptions: {
Expand Down Expand Up @@ -158,6 +169,7 @@ export default [
'one-var': strictness,
'no-multi-assign': strictness,
'new-cap': strictness,
'require-yield': strictness,

radix: strictness,
eqeqeq: strictness,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"events": "^3.3.0",
"jose": "^6.1.0",
"loglevel": "^1.9.2",
"neverthrow": "^8.2.0",
"sdp-transform": "^2.15.0",
"ts-debounce": "^4.0.0",
"tslib": "2.8.1",
Expand Down Expand Up @@ -96,6 +97,7 @@
"eslint-config-prettier": "10.1.8",
"eslint-plugin-compat": "^6.0.2",
"eslint-plugin-import-x": "^4.16.1",
"eslint-plugin-neverthrow-must-use": "^0.1.2",
"eslint-plugin-prettier": "^5.5.4",
"gh-pages": "6.3.0",
"happy-dom": "^17.2.0",
Expand Down
34 changes: 30 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading