Skip to content

Commit

Permalink
Fix ESLint and rename to bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Oct 4, 2019
1 parent 26aa5c2 commit bd5f2b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/component/src/BasicTranscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import ScrollToEndButton from './Activity/ScrollToEndButton';
import SpeakActivity from './Activity/Speak';

import {
speechSynthesis as noopSpeechSynthesis,
SpeechSynthesisUtterance as NoopSpeechSynthesisUtterance
} from './Speech/noopSpeechSynthesisPonyfill';
speechSynthesis as bypassSpeechSynthesis,
SpeechSynthesisUtterance as BypassSpeechSynthesisUtterance
} from './Speech/BypassSpeechSynthesisPonyfill';

const ROOT_CSS = css({
overflow: 'hidden',
Expand Down Expand Up @@ -91,8 +91,8 @@ const BasicTranscript = ({
<ScrollToBottomPanel className={PANEL_CSS + ''}>
<div className={FILLER_CSS} />
<SayComposer
speechSynthesis={speechSynthesis || noopSpeechSynthesis}
speechSynthesisUtterance={SpeechSynthesisUtterance || NoopSpeechSynthesisUtterance}
speechSynthesis={speechSynthesis || bypassSpeechSynthesis}
speechSynthesisUtterance={SpeechSynthesisUtterance || BypassSpeechSynthesisUtterance}
>
<ul
aria-atomic="false"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Since this is a bypass, we will relax some ESLint rules

/* eslint class-methods-use-this: "off" */
/* eslint getter-return: "off" */
/* eslint max-classes-per-file: ["error", 4] */
/* eslint no-empty-function: "off" */

import EventTarget, { defineEventAttribute } from '../external/event-target-shim';

class SpeechSynthesisEvent {
Expand Down
2 changes: 2 additions & 0 deletions packages/component/src/external/event-target-shim.js

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

0 comments on commit bd5f2b5

Please sign in to comment.