Skip to content

Commit

Permalink
build: update react-client eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed Jan 19, 2021
1 parent 70f1d10 commit 8511e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-client/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react",
"plugin:@typescript-eslint/eslint-recommended"
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true
Expand Down
3 changes: 3 additions & 0 deletions packages/react-client/src/useTelnyxRTC.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */
// See: https://github.com/eslint/eslint/issues/12822 for eslint-disable no-unused-expressions reason
import { useEffect, useRef } from 'react';
import { TelnyxRTC, IClientOptions } from '@telnyx/webrtc';

Expand Down Expand Up @@ -44,6 +46,7 @@ function useTelnyxRTC(
}

telnyxClientRef.current = new TelnyxRTC({
// eslint-disable-next-line @typescript-eslint/camelcase
login_token: '',
...credentialParam,
...clientOptions,
Expand Down

0 comments on commit 8511e9b

Please sign in to comment.