Skip to content

Commit

Permalink
add linting to travis (DeviaVir#1446)
Browse files Browse the repository at this point in the history
* add linting to travis

* lint fixes
  • Loading branch information
krystophv authored and DeviaVir committed Mar 1, 2018
1 parent 445ff5f commit ffb3c5a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ node_js:
before_install:
- npm install -g node-gyp
- if [ "$TRAVIS_NODE_VERSION" = "9" ]; then npm install -g greenkeeper-lockfile@1; fi
script:
- npm run lint
- npm test
after_success:
- if [ "$TRAVIS_NODE_VERSION" = "9" ]; then greenkeeper-lockfile-update; fi
after_script:
Expand Down
2 changes: 1 addition & 1 deletion extensions/exchanges/bittrex/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ module.exports = function bittrex(conf) {
if(typeof data.result.buy[0].Rate === 'undefined') {
console.log(data.message)
return cb(null, [])
};
}
cb(null, {
buyOrderRate: data.result.buy[0].Rate,
buyOrderAmount: data.result.buy[0].Quantity,
Expand Down
2 changes: 1 addition & 1 deletion extensions/exchanges/poloniex/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = function container (conf) {
return cb(null, [])
}
if (data.error) {
console.error('\ggetOrderBook error:')
console.error('getOrderBook error:')
console.error(data)
return retry('getOrderBook', params)
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/strategies/ta_ema/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ module.exports = {
// we add all maybe we need more indicators
Promise.all([ta_ema(s, s.options.trend_ema)]).then(result => {
if(result && result.outReal) {
s.period.trend_ema = result.outReal;
s.period.trend_ema = result.outReal
}
});
})

// calculate ema rate
if (s.period.trend_ema && s.lookback[0] && s.lookback[0].trend_ema) {
Expand Down
8 changes: 4 additions & 4 deletions extensions/strategies/ta_ultosc/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ module.exports = {
}
}

signals.bottom = s.period.ultosc < 30 ? signals.bottom + 1 : 0;
signals.top = s.period.ultosc > 70 ? signals.top + 1 : 0;
signals.bottom = s.period.ultosc < 30 ? signals.bottom + 1 : 0
signals.top = s.period.ultosc > 70 ? signals.top + 1 : 0

s.signales = signals;
s.signales = signals
}

if (s.period.trend_ultosc == 'up') {
Expand Down Expand Up @@ -114,7 +114,7 @@ module.exports = {
let cols = []

if (typeof s.period.ultosc === 'number') {
let signal = z(8, n(s.period.ultosc).format('0.0000'), ' ');
let signal = z(8, n(s.period.ultosc).format('0.0000'), ' ')

if (s.period.ultosc <= 30) {
cols.push(signal.red)
Expand Down
2 changes: 1 addition & 1 deletion lib/ta_willr.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function ppo(s, min_periods, timeperiod) {
optInTimePeriod: timeperiod || 14,
}, function (err, result) {
if (err) {
console.log(err);
console.log(err)
reject(err, result)
return
}
Expand Down
24 changes: 12 additions & 12 deletions webpack-src/js/echarts.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var echarts = require('echarts/lib/echarts');

require('echarts/lib/chart/line');
require('echarts/lib/chart/bar');
require('echarts/lib/chart/candlestick');
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/dataZoom');
require('echarts/lib/component/markPoint');
require('echarts/lib/component/toolbox');

module.exports = echarts;
var echarts = require('echarts/lib/echarts')

require('echarts/lib/chart/line')
require('echarts/lib/chart/bar')
require('echarts/lib/chart/candlestick')
require('echarts/lib/chart/scatter')
require('echarts/lib/component/tooltip')
require('echarts/lib/component/dataZoom')
require('echarts/lib/component/markPoint')
require('echarts/lib/component/toolbox')

module.exports = echarts

0 comments on commit ffb3c5a

Please sign in to comment.