Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Eslint update #2
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Feb 21, 2017
1 parent 4b8e62a commit 09a4b0d
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 30 deletions.
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@
},
"plugins": [
"react"
]
],
"globals": {
"localStorage",
"Promise",
"config"
}
}
4 changes: 0 additions & 4 deletions src/actions/AppActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global config:true */

import * as types from '../constants/ActionTypes'
import axios from 'axios';
import {replace} from 'react-router-redux';
Expand All @@ -8,7 +6,6 @@ import Stomp from 'stompjs/lib/stomp.min.js';

export function loginSuccess() {
return dispatch => {
/** global: localStorage */
localStorage.setItem('isLogged', true);

dispatch(getNotificationsEndpoint()).then(topic => {
Expand Down Expand Up @@ -44,7 +41,6 @@ export function loginSuccess() {

export function logoutSuccess() {
return () => {
/** global: localStorage */
localStorage.removeItem('isLogged');
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/actions/GenericActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global config:true */

import axios from 'axios';

// IMPORTANT GENERIC METHODS TO HANDLE LAYOUTS, DATA, COMMITS
Expand Down
1 change: 0 additions & 1 deletion src/actions/ListActions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global config:true */

import * as types from '../constants/ActionTypes'
import axios from 'axios';
Expand Down
4 changes: 0 additions & 4 deletions src/actions/MenuActions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/* global config:true */
/* global Promise:true */

import * as types from '../constants/MenuTypes'
import axios from 'axios';


export function setBreadcrumb(breadcrumb){
return {
type: types.SET_BREADCRUMB,
Expand Down
2 changes: 0 additions & 2 deletions src/actions/WindowActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global config:true */

import * as types from '../constants/ActionTypes'
import axios from 'axios';
import { push, replace } from 'react-router-redux';
Expand Down
2 changes: 0 additions & 2 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global config:true */

import React, { Component, PropTypes } from 'react';
import {push} from 'react-router-redux';
import {connect} from 'react-redux';
Expand Down
2 changes: 0 additions & 2 deletions src/components/table/TableQuickInput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';

Expand Down
2 changes: 0 additions & 2 deletions src/components/widget/ActionButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';

Expand Down
2 changes: 0 additions & 2 deletions src/components/widget/Devices/Device.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global config:true */

import React, { Component } from 'react';
import SockJs from 'sockjs-client';
import Stomp from 'stompjs/lib/stomp.min.js';
Expand Down
2 changes: 0 additions & 2 deletions src/components/widget/Image.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component } from 'react';
import { getImageAction, postImageAction } from '../../actions/AppActions';

Expand Down
2 changes: 0 additions & 2 deletions src/components/widget/Lookup/Lookup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component, PropTypes } from 'react';
import {connect} from 'react-redux';

Expand Down
2 changes: 0 additions & 2 deletions src/containers/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component } from 'react';
import { Provider } from 'react-redux';
import axios from 'axios';
Expand Down
2 changes: 0 additions & 2 deletions src/containers/MasterWindow.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global Promise:true */

import React, { Component, PropTypes } from 'react';
import {connect} from 'react-redux';

Expand Down

0 comments on commit 09a4b0d

Please sign in to comment.