mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Comply to XO's no-warning-comments rule
This commit is contained in:
parent
8f28573fc0
commit
630f0f4504
6 changed files with 5 additions and 6 deletions
|
|
@ -108,7 +108,7 @@ export function setActiveSession(uid) {
|
|||
type: SESSION_SET_ACTIVE,
|
||||
uid,
|
||||
effect() {
|
||||
// TODO: this goes away when we are able to poll
|
||||
// This goes away when we are able to poll
|
||||
// for the title ourseleves, instead of relying
|
||||
// on Session and focus/blur to subscribe
|
||||
if (prevUid) {
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ export function showPreferences() {
|
|||
type: UI_SHOW_PREFERENCES,
|
||||
effect() {
|
||||
dispatch(requestSession());
|
||||
// TODO: replace this hack with an async action
|
||||
// Replace this hack with an async action
|
||||
rpc.once('session add', ({uid}) => {
|
||||
rpc.once('session data', () => {
|
||||
dispatch(sendSessionData(
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class TermGroup_ extends Component {
|
|||
onURLAbort: this.bind(this.props.onURLAbort, null, uid)
|
||||
});
|
||||
|
||||
// TODO: This will create a new ref_ function for every render,
|
||||
// This will create a new ref_ function for every render,
|
||||
// which is inefficient. Should maybe do something similar
|
||||
// to this.bind.
|
||||
return (<Term
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ export default class Term extends Component {
|
|||
}
|
||||
|
||||
handleFocus() {
|
||||
// TODO: This will in turn result in `this.focus()` being
|
||||
// This will in turn result in `this.focus()` being
|
||||
// called, which is unecessary.
|
||||
// Should investigate if it matters.
|
||||
this.props.onActive();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import {values} from '../utils/object';
|
|||
const allowedCursorShapes = new Set(['BEAM', 'BLOCK', 'UNDERLINE']);
|
||||
const allowedBells = new Set(['SOUND', false]);
|
||||
|
||||
// TODO: populate `config-default.js` from this :)
|
||||
// Populate `config-default.js` from this :)
|
||||
const initial = Immutable({
|
||||
cols: null,
|
||||
rows: null,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
],
|
||||
"rules": {
|
||||
"new-cap": 0,
|
||||
"no-warning-comments": 0,
|
||||
"complexity": 0,
|
||||
"react/prop-types": 0,
|
||||
"react/jsx-no-bind": 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue