Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 5cc7547

Browse files
committed
Merge pull request #144 from jaredly/lint-fixes
lint fixes
2 parents 4ed698a + 175b599 commit 5cc7547

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

shells/chrome/webpack.backend.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
'use strict';
1111

1212
var webpack = require('webpack');
13-
var fs = require('fs');
1413

1514
module.exports = {
1615
devtool: 'cheap-module-eval-source-map',

shells/firefox/main/ReactPanel.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ const ReactPanel = Class({
3737
const panelSide = channel.port2;
3838

3939
function makeWorker() {
40-
let worker = tabs.activeTab.attach({
40+
let tmpWorker = tabs.activeTab.attach({
4141
contentScriptFile: 'build/contentScript.js',
4242
});
43-
worker.port.on('message', function (data) {
43+
tmpWorker.port.on('message', function (data) {
4444
addonSide.postMessage(data);
4545
});
46-
worker.port.on('hasReact', function (hasReact) {
46+
tmpWorker.port.on('hasReact', function (hasReact) {
4747
metaAddonSide.postMessage({type: 'hasReact', val: hasReact});
4848
});
49-
worker.port.on('unload', function () {
49+
tmpWorker.port.on('unload', function () {
5050
metaAddonSide.postMessage('unload');
5151
});
52-
worker.on('error', function (error) {
52+
tmpWorker.on('error', function (error) {
5353
console.log('More Error!!', error);
5454
});
55-
worker.port.on('error', function (error) {
55+
tmpWorker.port.on('error', function (error) {
5656
console.log('Error!!', error);
5757
});
58-
return worker;
58+
return tmpWorker;
5959
}
6060

6161
addonSide.onmessage = function (evt) {
@@ -66,7 +66,6 @@ const ReactPanel = Class({
6666
const metaAddonSide = metaChannel.port1;
6767
const metaPanelSide = metaChannel.port2;
6868

69-
let mainPort = this.port;
7069
tabs.activeTab.on('pageshow', function () {
7170
metaAddonSide.postMessage('show');
7271
worker = makeWorker();

test/example/sink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class Nester extends React.Component {
5757
class SymbolProp {
5858
render() {
5959
return (
60-
<div sym={Symbol("name")}>
60+
<div sym={Symbol('name')}>
6161
This tests that dehydration + inspection works with symbols
62-
{Symbol("child")}
62+
{Symbol('child')}
6363
</div>
6464
);
6565
}

0 commit comments

Comments
 (0)