Skip to content

Commit

Permalink
Eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fkling committed Dec 12, 2015
1 parent f933252 commit 20a8692
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ rules:
no-path-concat: 0
no-undef: 2
no-underscore-dangle: 0
no-unused-vars: 1
no-use-before-define: 0
quotes: [2, "single", "avoid-escape"]
strict: 0
react/react-in-jsx-scope: 1
react/jsx-no-undef: 1
react/jsx-uses-react: 1
import/no-unresolved: [2, {commonjs: true, amd: true}]
import/named: 2
import/default: 2
Expand Down
1 change: 0 additions & 1 deletion src/ASTOutput.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PubSub from 'pubsub-js';
import React from 'react';
import cx from 'classnames';
import visualizations from './components/visualization';
Expand Down
1 change: 0 additions & 1 deletion src/Editor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import CodeMirror from 'codemirror';
import PubSub from 'pubsub-js';
import React from 'react';
import {keypress} from 'keypress';

export default class Editor extends React.Component {
static propTypes = {
Expand Down
1 change: 0 additions & 1 deletion src/ParserSettingsButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import * as parsers from './parsers';
import pubSub from 'pubsub-js';

export default class ParserSettingsButton extends React.Component {
Expand Down
13 changes: 4 additions & 9 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,7 @@ class App extends React.Component {
}

render() {
const {
revision,
showTransformPanel,
currentTransformCode,
initialTransformCode,
} = this.state;
const {showTransformPanel} = this.state;

return (
<PasteDropTarget
Expand All @@ -515,11 +510,11 @@ class App extends React.Component {
onParserChange={this._onParserChange}
onTransformChange={this.onTransformChange}
canSave={this._canSave()}
canFork={!!revision}
canFork={!!this.state.revision}
category={this.state.parser.category}
parser={this.state.parser}
transformer={this.state.transformer}
transformPanelIsEnabled={this.state.showTransformPanel}
transformPanelIsEnabled={showTransformPanel}
/>
{this.state.error ? <ErrorMessage message={this.state.error} /> : null}
<SplitPane
Expand All @@ -544,7 +539,7 @@ class App extends React.Component {
parser={this.state.parser}
/>
</SplitPane>
{this.state.showTransformPanel ? <SplitPane
{showTransformPanel ? <SplitPane
className="splitpane"
onResize={this._onResize}>
<Editor
Expand Down
2 changes: 1 addition & 1 deletion src/components/ast/RecursiveTreeElement.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

function shouldAutoFocus({deepOpen, value, settings, focusPath}) {
function shouldAutoFocus({value, settings, focusPath}) {
return !!settings.autofocus && focusPath.indexOf(value) > -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/parsers/utils/defaultParserInterface.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
_ignoredProperties: new Set(),

opensByDefault(node, key) {
opensByDefault(/*node, key*/) {
return false;
},

Expand Down

0 comments on commit 20a8692

Please sign in to comment.